Main-Class: ExampleClass
Im adding it while making the jar file but this is the error im getting?
Printable View
Main-Class: ExampleClass
Im adding it while making the jar file but this is the error im getting?
Use a zip utility to look in the jar file and make sure the manifest file is there and that it has the correct contents.
What is the commandline with options that you are using to create the jar file?
jar cfmv exampletut.jar mainClass.txt ExampleClass.class ExampleClass2.class
I looked at the manifest and it has no
Main-Class: ExampleClass
?
mainClass.txt =
Main-Class: ExampleClass
Is the mainClass.txt file in the jar? It shouldn't be.