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

Can't run jar command !

0 views
Skip to first unread message

George xu

unread,
May 2, 2000, 3:00:00 AM5/2/00
to
Hello all:

I install jdk1.2.2 and jsdk2.1 in Redhat6.0 computer.But I can run "javac"
"and java" command . but I can't run "jar" command.

Example:
[root@localhost /root]# jar
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)
[root@localhost /root]#

How to solve the problem?
How to set CLASSPATH ?

Please help me!
Thank you!

Paul Johnston

unread,
May 2, 2000, 3:00:00 AM5/2/00
to
Does the problem still manifest if you do sub-critical tasks like this
without root?

George xu wrote in message <8elke9$mha$1...@news.cz.js.cn>...

0 new messages