Amlan Saha wrote:
> 
> Hi people
> 
> On RH 6.0 when I try to create a .jar file out of my classes, I get
> the following - (I used jar cf my.jar *.class)
> 
> java.lang.NoClassDefFoundError: sun/tools/jar/Main
>         at java.lang.Throwable.<init>(Throwable.java:40)
>         at java.lang.Error.<init>(Error.java:21)
>         at java.lang.LinkageError.<init>(LinkageError.java:21)
>         at java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:21)
> 
> I checked the /usr/bin/jar file and it seems that it is a shell
> script calling "kaffe" executable with the argument
> Sun.tools.jar.Main.
> 
> Any pointers for me as to what is going on ?

Kaffe is a GPL Java Development Kit similar to Suns JDK.  I don't think
it works as well, and it obviously causes some problems.  You can either
rename the /usr/bin/jar to jar.old or something or do an rpm -e kaffe to
get rid of the entire development kit.  Since you have this problem make
sure that you are actually using the JDK you thought you were by doing a
java -version. If it says Blackdown something or 1.1.7, etc then you're
using a Blackdown/Sun Port, otherwise if it says Kaffe... you're still
using Kaffe.

-Jim


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to