I made a jar file from Eclipse on Linux, but when I try to run the jar
I get the following error :
Exception in thread "main" java.lang.NoClassDefFoundError:
When starting the jar file with java in Linux, does the main class have
to have the same name as the jar file?
brightoceanlight@hotmail.com - 04 Nov 2005 17:24 GMT
Solved it. The package name wasn't included before the class name in
the shell script when trying to run the main class in the jar.
Roedy Green - 05 Nov 2005 09:07 GMT
>Exception in thread "main" java.lang.NoClassDefFoundError:
This is a nightmare. I have documented many causes for it. I wish Sun
would do something to split this exception up so that the subspecies
gave you more clues. I have been juggling the causes over the years
trying to percolate the most common ones to the top.
See
http://mindprod.com/jgloss/runerrormessages.html#NOCLASSDEFFOUNDERROR

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.