Continuing from my previous UseOfManifestFile thread, i advanced to use my own MANIFEST.MF
file rather then using the default one created from the jar tool. I am attaching the snapshot here.
. It shows my directory structure as well as the command i am using. It's not using my MANIFEST.MF file. I don't know why and default is getting created. What mistake i am committing? I also swapped the MANIFEST.MF file name and jar name and now it gives the following error.
Can anyone help me in this.
Directory Structure
d:->corejava | chapter10 | tictactoe.jar | tictactoe | HelloWorld.class , audio(folder), images(folder)
My point is, i was able to add the contents of Manifest.txt into the MANIFEST.MF file. Now when i try to run the jar from chapter directory using the following command :-
java jar tictactoe.jar
It gives the following error to me
Error: Could not find or load main class jar
Can someone help me in this.