Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The .exe I created with Launch4j doesn't run

I was able to successfully create a .exe file from an executable jar. From Launch4j I can test the wrapper, and the output on the log is what I expect. However if I try to run the exe from the command line or from Windows Explorer, nothing happens. No error, no output to the console as expected. The program is also supposed to edit a text file which does happen when I run the jar using a batch file, but not when I run the exe. This is all on the same computer so I doubt it is a problem with the JRE. I have searched StackOverflow extensively but found nothing that helps with this situation. I did find this post with a similar problem: Launch4J executable not executing as expected but nobody actually answered the question. Thank you in advance for helping

like image 300
csw Avatar asked Feb 09 '23 17:02

csw


1 Answers

I found the issue. Under Header, I had to switch the Header type from GUI to Console. After that I was able to run the exe.

like image 113
csw Avatar answered Feb 12 '23 07:02

csw