Reputation: 19
I made an .exe
file out of a command prompt program that I created. The original .java
file can be launched in command prompt or in Eclipse without any problem.
I created a .jar
file from it by using Eclipse Neon Release 4.6.0.
From this .jar
file I created an .exe
file by using launch4j 3.8. When I double click on the created .exe
file, it does not launch the command prompt automatically, and it does not run the created program.
I followed the steps described here. I used these steps to create programs with a GUI, and those programs worked fine. This command prompt program does not.
Is it possible that command prompt programs cannot be run this way? Or if there is a solution for this problem, can you please help me with it?
Upvotes: 0
Views: 289
Reputation: 342
I used these steps to create programs with a GUI, and those programs worked fine. This command prompt program does not.
Are you sure that your program in not so fast? Open the promt and go to the folder, so running the '.exe' in the promt
Upvotes: 0
Reputation: 27744
According to the Launch4J docs (http://launch4j.sourceforge.net/docs.html), you need to use:
launch4jc.exe
(note the c
)
which no doubt wraps java.exe
instead of javaw.exe
Upvotes: 2