1

After having the jar, how to make a starter program (For example, in windows, an exe file) which can start the jar?

user496949
  • 83,087
  • 147
  • 309
  • 426

2 Answers2

5

Try Launch4j. It works very well for building Java launchers for a project of mine.

uckelman
  • 25,298
  • 8
  • 64
  • 82
2

You can make a .bat file to run your .jar
Just create a new text file and write in it:

java -jar "filename.jar"

Save it and rename it to whatever.bat. Now in Windows you can run that whatever.bat file and your java program will be run.
Also, JRE has to be installed on the machine you will run this.

Iulius Curt
  • 4,984
  • 4
  • 31
  • 55