I can export an executable jar file of HelloWorld.java by following the link:
then, I tried to export jar file of my own project which have more classes under class path.
I followed the link above to created test.jar.
then I copy all of the classes under my project class path to C:\Documents and Settings\s\Desktop, where test.jar located,
under cmd, I run java -jar test.jar
C:\Documents and Settings\s\Desktop\New Folder>java -jar lina.jar
Exception in thread "main" java.lang.NoClassDefFoundE
but I have mysql-connector-java-5.1.0
-bin.jar under C:\Documents and Settings\s\Desktop\New Folder;
I also have the jar file contains a/b/C under the folder
why the classes are not found? thanks