Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

need .jar help


ghost's Avatar
0 0

Hay I'm having some problems with making an executable jar file can any one give me the commands in an example?


ghost's Avatar
0 0

I remembered that i had a book on java so i looked it up but i keep getting the message Could not fing the main class. Program will exit:( However i have done what the book said step by step.

The whole jar cmf *.mf *.jar *.class

also i read those yesterday


ghost's Avatar
0 0

main class. Program will exit However i have done what the book said step by step. yeh! that's f**king annoying.

Here is better way to debug.

-Open Dos promt. -Go to under the folder where your jar file located. -Type this : "java -jar yourjar.jar" -Then it will show you why your jar doesnt work.

:happy:


ghost's Avatar
0 0

netfish wrote: I'm a lazy bum, so I use an automatic wrapper to turn my .jar into .exe programs.

Java is not meant to do so. lol :ninja:


ghost's Avatar
0 0

I've done that too and I get this message Exception in thread "main" java.lang.NoClassDefFoundError: myjar/game.


ghost's Avatar
0 0

echo99 wrote: I've done that too and I get this message Exception in thread "main" java.lang.NoClassDefFoundError: myjar/game.

main class lost. check your manifest.mf file