Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » MacOS X: CVS-SSH2 Plugin: ClassDefNotFound
MacOS X: CVS-SSH2 Plugin: ClassDefNotFound [message #87198] Wed, 20 August 2003 10:17 Go to next message
Eclipse UserFriend
I've been attempting to use the SSH2 CVS Plugin [1] with Eclipse 3M2 under
MacOS 10.2.6 using
the Apple JDK 1.4.1. I'm able to create a CVS connection using extssh2,
but when I try to share a
project into a repository I'm seeing the following in .log:

java.lang.NoClassDefFoundError: javax/crypto/spec/SecretKeySpec
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at com.jcraft.jsch.Identity.<init>(Unknown Source)
at com.jcraft.jsch.JSch.addIdentity(Unknown Source)
at com.jcraft.jsch.JSch.addIdentity(Unknown Source)
at com.jcraft.eclipse.cvsssh2.CVSSSH2ServerConnection.open(Unkn own
Sourc
e)
at
org.eclipse.team.internal.ccvs.core.connection.Connection.op en(Connec
tion.java:134) [...]

Has anyone found a way to get this working?

I dropped in version 0.1.6 of the jsch [2] dependency, and it seemed to
make little difference.
However, it was positive to note that the examples that come with jsch did
run for me under
MacOS X (the ones I tried).

I also tried adding jce.jar to the libraries used by the Eclipse Java
runtime (Windows/Preferences/
Java/Installed JREs), but again this produced no difference.

All clues greatly appreciated...
Richard

1. http://www.jcraft.com/eclipse-cvsssh2/

2 http://www.jcraft.com/jsch/index.html
Re: MacOS X: CVS-SSH2 Plugin: ClassDefNotFound [message #91848 is a reply to message #87198] Wed, 03 September 2003 11:19 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
I'm an author of this plug-in.

Richard Dallaway wrote:
> I've been attempting to use the SSH2 CVS Plugin [1] with Eclipse 3M2 under
> MacOS 10.2.6 using
> the Apple JDK 1.4.1. I'm able to create a CVS connection using extssh2,
> but when I try to share a
> project into a repository I'm seeing the following in .log:
> java.lang.NoClassDefFoundError: javax/crypto/spec/SecretKeySpec

I guess that Eclipse is still running on JDK 1.3.
I'm not an OS X user, but many OS X users had reported similar problem
and one of them kindly taught me he could fix that problem by switching
JDK version. Here is a quote from his howto.

What you have to do is go into "Eclipse.app", and then into "Contents",
and then edit "Info.plist". This is an XML property file, and there
will be an entry (near the top for me) like

<key>JVMVersion</key>
<string>1.3.1</string>

Replace the "1.3.1" with whatever version you're actually using
("1.4.1" in my case) and things work a _lot_ better...

I greatly appreciate Nic McPhee(mcphee_at_mrs_dot_umn_dot_edu).


Thanks,
--
ymnk
Re: MacOS X: CVS-SSH2 Plugin: ClassDefNotFound [message #99594 is a reply to message #91848] Mon, 29 September 2003 06:45 Go to previous message
Eclipse UserFriend
Originally posted by: Andre_Weinand.oti.com

On 3.9.2003 17:19 Uhr, in article bj50qu$o7h$1@eclipse.org, "ymnk"
<ymnk@jcraft.com> wrote:

> Hi,
> I'm an author of this plug-in.
>
> Richard Dallaway wrote:
>> I've been attempting to use the SSH2 CVS Plugin [1] with Eclipse 3M2 under
>> MacOS 10.2.6 using
>> the Apple JDK 1.4.1. I'm able to create a CVS connection using extssh2,
>> but when I try to share a
>> project into a repository I'm seeing the following in .log:
>> java.lang.NoClassDefFoundError: javax/crypto/spec/SecretKeySpec
>
> I guess that Eclipse is still running on JDK 1.3.
> I'm not an OS X user, but many OS X users had reported similar problem
> and one of them kindly taught me he could fix that problem by switching
> JDK version. Here is a quote from his howto.
>
> What you have to do is go into "Eclipse.app", and then into "Contents",
> and then edit "Info.plist". This is an XML property file, and there
> will be an entry (near the top for me) like
>
> <key>JVMVersion</key>
> <string>1.3.1</string>
>
> Replace the "1.3.1" with whatever version you're actually using
> ("1.4.1" in my case) and things work a _lot_ better...
>

No, the Info.plist file for Eclipse uses the standard Eclipse command line
argument syntax, so the above guess would not work.

- Eclipse 3.0 > M1 uses 1.4.1 automatically if its available,
- for 2.1 versions you can force Eclipse to use the 1.4.1 via
<string>-XXvm=1.4.1</string>,
- to check what version Eclipse runs on just do a
Help > About Eclipse Platform > Configuration Details

--andre
Previous Topic:Framework Navigator
Next Topic:Pretty colours in compare view
Goto Forum:
  


Current Time: Mon May 12 14:03:16 EDT 2025

Powered by FUDForum. Page generated in 0.17634 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top