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

两盒软妹~` 提交于 2019-11-29 03:28:39

问题


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?


回答1:


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.




回答2:


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!



来源:https://stackoverflow.com/questions/2068133/launch4j-exe-has-nothing-to-say-for-itself-anyone-got-a-suggestion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!