Some questions are like: How can I package my java app into an exe ?
This is not what I am going to ask.
I can launch my application by doing the following:
java -jar myApp.jar
That works perfectly (Assuming the machine has java 1.5.0 or >)
Now what I was thinking of having is a myApp.exe file.
What it would do is the following:
- check if java is installed on the machine and its version.
if java is not there it would prompt a dialog to say:
“you need to install java to run myApp”
exactly like eclipse.exe does if it does not find java.
it would then terminate. - if java is there, then effectively run the command
javaw -jar app.jar and spawn the process.
any idea ?
I left this question unanswered for a very long time.
I think it’s fair to say that there is no such easy way to do so.
JSmooth looks like a good tool, but it’s pretty limited.
Eclipse has written its own solution and so many other solutions written in java deployed as exe.