Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with Jar

0 views
Skip to first unread message

sof...@videotron.ca

unread,
Sep 12, 2001, 1:47:04 PM9/12/01
to
Hi,
I am a newbie and I am trying to to create a jar file using the jar
command. However, I am receiving the following error and I do not
understant why. Can anyone help me?

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


Jon Skeet

unread,
Sep 13, 2001, 3:46:00 AM9/13/01
to

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

0 new messages