4

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
Ami
  • 4,241
  • 6
  • 41
  • 75

1 Answers1

7

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.

Eugene Loy
  • 12,224
  • 8
  • 53
  • 79
  • Are you sure you've set the correct file path in `` tag in your config file? If yes - please provide more info (config file, more info about file you are trying to wrap, etc). – Eugene Loy Oct 17 '13 at 05:40
  • Thanks Loy.launch4jc.exe config.xml execute this cmd and got following error.launch4j: Application jar doesn't exist.but i have jar in this place.Is this need to specify the jar in cmd? – Ami Oct 17 '13 at 05:41