I want to make an executable JAR file, and am facing some problems.
Here's what I have tried:
My program is in the following folder C:\extract\ExportTest.class
I created a Manifest (Manifest.mf) file in the same directory and the content of it is:
There's also a carriage return after that one line.
I created the jar file, using the following command
C:\extract>jar cmf Manifest.mf extract.jar *.*
Now I have the extract.jar file in my C:\extract\extract.jar
But when I open the jar file, if complains that it can't find the main class.... this is the error "Could not find the main class, Program will exit"
Am I doing something not correctly? please advise...