1

Referring to the documentation of launch4j (http://launch4j.sourceforge.net/index.html) it should be possible to only launch the Java jar without wrapping it to an exe file!

How is this possible? (which command / command arguments)

Thx!

leon22
  • 5,280
  • 19
  • 62
  • 100
  • On windows include a manifest (with Main-Class:) in jar, install a JRE and double click it – Petter Friberg Nov 27 '15 at 10:29
  • 2
    Possible duplicate of [How to run a JAR file](http://stackoverflow.com/questions/1238145/how-to-run-a-jar-file) – Petter Friberg Nov 27 '15 at 10:34
  • @PetterFriberg It is necessary to do the job with launch4j -> no java -jar (Java Jre is installed but I need the launch4j process) It should be possible. – leon22 Nov 27 '15 at 11:46
  • try to clarify in what way do you need the launch4j process.. setting variables?, bundle jre.... either you use it or you do not?? Can't really understand what you are trying to achieve... – Petter Friberg Nov 27 '15 at 11:50
  • first of all you need to add Main-Class in your manifest then build the jar as mentioned here. http://stackoverflow.com/questions/1238145/how-to-run-a-jar-file Second way is use the eclipse to build the Runnable jar. and and pass the Main class name while creating it. – Pradeep Maurya Nov 27 '15 at 11:55

0 Answers0