I have a .jar file which I have unzipped into it’s own directory.
The directory now contains a number of .class files.
I have converted the files into .java files.
I have found the file that a need to edit and edited it.
I have now converted it back to a .class file.
I now convert it to the original .jar file with the command: jar cf Creator.jar *
This creates a file called Creator.jar
When I try to run the file I get an error message:
Failed to load Main-Class manifest attribute.
The manifest.mf is:
Manifest-Version: 1.0
Created-By: 1.6.0_01 (Sun Microsystems Inc.)
And it should read:
Manifest-Version: 1.0
Created-By: 1.6.0_01 (Sun Microsystems Inc.)
Main-Class: Creator
Can anybody tell me how to create the .jar file to include Main-Class: Creator.
Thanks
John C
The directory now contains a number of .class files.
I have converted the files into .java files.
I have found the file that a need to edit and edited it.
I have now converted it back to a .class file.
I now convert it to the original .jar file with the command: jar cf Creator.jar *
This creates a file called Creator.jar
When I try to run the file I get an error message:
Failed to load Main-Class manifest attribute.
The manifest.mf is:
Manifest-Version: 1.0
Created-By: 1.6.0_01 (Sun Microsystems Inc.)
And it should read:
Manifest-Version: 1.0
Created-By: 1.6.0_01 (Sun Microsystems Inc.)
Main-Class: Creator
Can anybody tell me how to create the .jar file to include Main-Class: Creator.
Thanks
John C