java.lang.NoClassDefFoundError: sun/tools/jar/Main
at java.lang.Throwable.<init>(Thowable.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)
Note the command that I am using is : jar -cvf file.jar *.class
And also even if I type only jar I recieve the same error
Thanks for your help
Sounds like you've got a broken installation - I suggest you uninstall
any JREs and JDKs you have installed and reinstall a single JDK.
[Removed comp.lang.java.misc which doesn't exist and
comp.lang.java.progammer which was a typo.]
--
Jon Skeet - <sk...@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too