Reputation: 375
I was wondering how can I turn my program (which I am currently running from Eclipse) into an executable file?
This will make it more feasible as people with JRE can just access it by clicking on a single file.
Any help would be appreciated. Thank you.
Upvotes: 0
Views: 374
Reputation: 1091
You may create this as a maven project and then simply run mvn clean package
and the jar will be created in target directory.
Upvotes: 1
Reputation: 1451
manifest.txt
file.Main-Class: com.example.Main
manifest.txt
and required .class
files: jar cvfm myJar.jar manifest.txt *.class
Note: make sure to add .class files, not .java files.
Upvotes: 1