Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run lauch4j in command line?

Tags:

launch4j

I am newbie to launch4j.I want to create exe file using launch4j. I have followed this link for lauch4j tutorial. Now,i want to create exe file in command line using launch4j? I have tried following command but its not working.

>launch4j.exe sample.jar
like image 711
Ami Avatar asked Mar 22 '23 00:03

Ami


1 Answers

To run it in console mode you need to use launch4jc.exe (not launch4j.exe) and feed config.xml to it as a parameter.

Docs:

To wrap a jar in console mode use launch4jc.exe and specify the configuration file.

like image 197
Eugene Loy Avatar answered May 16 '23 08:05

Eugene Loy