bmargulies
bmargulies

Reputation: 100003

launch4j exe has nothing to say for itself, anyone got a suggestion?

Running on Linux, I've used launch4j to package an exe.

I copy the exe into my Windows 7 VM, and run it.

And nothing happens.

I run it with --l4j-debug, and nothing still happens (at least, if there's a log file, I cannot find it).

Is there some diagnostic technology that I'm missing here?

Upvotes: 10

Views: 6720

Answers (2)

divya
divya

Reputation: 1

The .jar file needs to be an executable JAR file. Make sure it is and try creating the .exe file with the executable jar file. This should solve it!

Upvotes: -3

finnw
finnw

Reputation: 48619

Create a console version of your EXE (in the "Header" tab, change "Header type" from "GUI" to "Console") and run that from a CMD prompt.

Most likely you will see an exception message in the console, and that will explain why your app is failing to start.

Upvotes: 14

Related Questions