简体   繁体   中英

.exe file not running after creating it using launch4j

I have a .jar file that is perfectly running when I run it using cmd command :

java -cp myjar.jar MainClassName

Now I created .exe file using launch4j . But the exe file is not running when I double click on it. It is not showing any error nor output. I haven't used a " splash " option in launch4j. Should I have to use it to make the .exe file run? Please help how to run the .exe file. I can see the log file of my .exe file, created by launch4j, updating only when I run it using launch4j directly. But the output is nothing. Please help me with this.Thankyou

If you don't use a JFrame in your application then you need to use Console instead of GUI. Once check it. And also use jar2Exe application for converting jar to Exe file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM