1. Put your .class files in a folder
2. create a file manifest.txt in that folder and type
this line inside that file and this line should end with a return{enter key}
3. then create a jar with this command{cd to go to above folder by terminal}
4. make this jar executable by the command
Now you can double click to run this program/jar
2. create a file manifest.txt in that folder and type
Quote:
Main-Class: ClassNameContainigMainMethod |
3. then create a jar with this command{cd to go to above folder by terminal}
Quote:
jar cvfm MyExecJar.jar manifest.txt *.class |
Quote:
chmod +x MyExecJar.jar |
No comments:
Post a Comment