Ive been trying to create a jar file for quite a bit of time now... Ill show my code
Main Java File:
Main.java
MANIFEST.txt:
Main-Class: Main
Jar Creation Command:
jar cmf MANIFEST.txt GUI.jar *.class
I compile and run the java files and I do not notice any issues until after I create the Jar file... After I create the Jar file, when I try and launch it (from the command line) it gives me the following error:
Error: Could not find or load main class
I took the jar file after trying to re-create the Jar several times with slightly different commands, and extracted the contents of the car. Afterwards I discovered that this is what actually loaded into the manifest.txt file:
Manifest-Version: 1.0
Created-By: 1.8.0_45 (Oracle Corporation)
Im not sure how, or why it happened.