Main-Class: ExampleClass
Im adding it while making the jar file but this is the error im getting?
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
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?
Java Programmer (January 7th, 2012)
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.