Amlan Saha <[EMAIL PROTECTED]> writes: > 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 ? If you are aiming to use the jar tool that comes with Kaffe, then you need to include the classes.zip file that comes with one of the JDK1.1 Blackdown distributions in your CLASSPATH. For example: /usr/local/bin/jar -classpath .:/usr/local/share/kaffe/Klasses.jar:/usr/local/jdk1.1/lib/classes.zip cf my.jar *.class If you are aiming to use the jar tool that comes with one of the Blackdown JDK distributions, specify the full path to the jar tool. For example: /usr/local/jdk1.2/bin/jar cf my.jar *.class Hope this helps. -Paul ---------------------------------------------------------------------- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]