I'm having a problem with running my application through the jar file:
I get the following error when i run my program.
C:\sun_certification>
java -jar runme.jar alone
Exception in
thread "main" java.lang.NoClassDefFoundError: suncertify/Runme
The Main-class attribute of my manifest file is: suncertify.Runme
this is the contents of my jar:
C:\sun_certification>jar -tf runme.jar
code/suncertify/db/RecordNotFoundException.class
code/suncertify/db/Data.java
code/suncertify/db/DuplicateKeyException.class
code/suncertify/db/DuplicateKeyException.java
code/suncertify/db/DBAccess.class
code/suncertify/db/SecurityException.java
code/suncertify/db/RecordNotFoundException.java
code/suncertify/db/SecurityException.class
code/suncertify/db/DBAccess.java
code/suncertify/client/URLyBirdClient.java
code/suncertify/client/URLyBirdClient$1.class
code/suncertify/client/URLyBirdClient.class
code/suncertify/server/URLyBirdServer.class
code/suncertify/server/URLyBirdServer.java
code/suncertify/Runme.class
code/suncertify/Runme.java
db-1x3.db
docs/choices.txt
docs/instructions.html
docs/userguide.txt
version.txt
META-INF/MANIFEST.MF
Is my Main-class attribute wrong? The Runme class just checks the command-line argument and lauches the server or client.
thanks in advance.