Exception in threads "main" java.langNoClassDefFoundError: com/tanksoftware

hi

i am using eclipse 3.2.i have created an application.in my application i have used 3 jar files which i download frm the net,my application is working perfactly through eclipse.when i made a jar file of that,it is showing me an error which is Exception in threads "main" java.langNoClassDefFoundError: com/tanksoftware/gallmage/GallMage2.while creating the jar file i have mentioned the correct main class..i am struggling wiht this problem for one week.please help me to solve this problem.please help me to solve this problem...

[545 byte] By [mebimathewa] at [2007-11-27 0:49:47]
# 1
Is that class inside the JAR? Exact name, exact package?And how do you execute the JAR?
CeciNEstPasUnProgrammeura at 2007-7-11 23:19:31 > top of Java-index,Java Essentials,Java Programming...
# 2
hiyes that class is inside the jar with correct name..i execute the jar as java -jargallmage2.jar
mebimathewa at 2007-7-11 23:19:31 > top of Java-index,Java Essentials,Java Programming...
# 3
Also correct package structure?
CeciNEstPasUnProgrammeura at 2007-7-11 23:19:31 > top of Java-index,Java Essentials,Java Programming...
# 4
hi it is also in correct package Structure...please help me to solve this problem
mebimathewa at 2007-7-11 23:19:31 > top of Java-index,Java Essentials,Java Programming...
# 5
hi is this error comes because my path is not correct. in the environment varibles my path is set as C:\Program Files\j2sdk1.4.2_14\bin;..please help.
mebimathewa at 2007-7-11 23:19:31 > top of Java-index,Java Essentials,Java Programming...
# 6

> is this error comes because my path is not correct

No your operating system's PATH is correct - otherwise you wouldn't be able to

run the java executable and get the error message.

Check your manifest to see what main class is being run. Check your jar file

to see that the main class exists at the correct location.

pbrockway2a at 2007-7-11 23:19:31 > top of Java-index,Java Essentials,Java Programming...
# 7
That's not a legal class name, it's a filename. Where is that name being used? Fix it.
ejpa at 2007-7-11 23:19:31 > top of Java-index,Java Essentials,Java Programming...
# 8

hi

i have extracted the jar file which i have created through eclipse in that i have the folder called as META-INF in that manifest.mf is Manifest-Version: 1.0

Main-Class: com.tanksoftware.gallmage.GallMage2.

when i run this jar file through dos-promt it is giving me the Exception in threads "main" java.langNoClassDefFoundError: com/tanksoftware..please help

mebimathewa at 2007-7-11 23:19:31 > top of Java-index,Java Essentials,Java Programming...
# 9
So is there a directory in the JAR file called 'com' at the top level? and doe sit contain a directory called 'tanksoftware'? ...
ejpa at 2007-7-11 23:19:31 > top of Java-index,Java Essentials,Java Programming...