I am a beginner in java programming. I have created a package called Comp Project which contains two classes....
- ATM: It has various functions to carry out actions of atm screen.
- Main: This class calls all the functions from ATM and executes them.
Now the program is running good and I have to create a jar file. I created a Jar file with the main class selected as Main. But when I try to run it....it doesn't work. The problem is that i don't understand what creating a manifest is...I looked onto other posts but i did not understand anything.
Can anyone tell me the steps to follow for creating a proper Jar file and Running it?? I need both as I don't know where i am going wrong.
Update: I am using BlueJ.
You can use
jar cf yourCompAppJar.jar Main.class
to create your jar file, if you have JDK 6 you can use the cfe to specify the entry point.If you are using Eclipse :
Create a manifest.txt file.
And then on command line
Hope this helps.