There's a lot of information on JavaWebstart, read it.
And if you'd read other replies you'd know by now that you do NOT make exes out of Java classfiles.
There are some expensive tools out there that can do it, which a search engine should turn up, but that completely defeats the purpose of the language.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
Hi everybody,
I followed the Invaders tutorial and I'm trying to make it into an exe file. I have JBuilder 9 and I tried the "Native Executable" tool and it just opens up the program and closes it. Any help would be appreciated.
Thanks in advanced,
C++
What program are you trying to turn into an exe ... is it a GUI based program or a command line program ?? if its a GUI program then there's an option in JBuilder about making a GUI exe ... and if its a command line program then you'll have to take care that you input some random thing at the end of the program so that it may show up until you press that key ....
nanosani
Unauthenticated Liar
1,830 posts since Jul 2004
Reputation Points: 45
Solved Threads: 56
The native exe option is just an exewrapper to facilitate easier starting of the application.
It still needs an installed JVM on the target machine.
Effectively it's little more than a glorified batchfile :)
This is the normal way for Java.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
The native exe option is just an exewrapper to facilitate easier starting of the application.
It still needs an installed JVM on the target machine.
Effectively it's little more than a glorified batchfile :)
This is the normal way for Java.
True ... the exe file will only run where jvm is installed ... but you can also use installation creators to first install jvm on the target machine and then install your software .. but that will be of too much size.
If its a GUI app .. and its like running and disappearing ... then you should check your constructor code ... there must be some mistake there.
nanosani
Unauthenticated Liar
1,830 posts since Jul 2004
Reputation Points: 45
Solved Threads: 56
I have used JBuilder 7 ... so I'm afraid I'll not be able to tell you the exact paths .... but I remember that the first option in the native exe builder was the dos based program creation and then second one was the windows based one ... and then others for mac linux etc ... you'll have to check the second one ...
There are other tools for building exe of java programs ... you can search google for the tools..
You can also make a small C program that executes your java files ...
nanosani
Unauthenticated Liar
1,830 posts since Jul 2004
Reputation Points: 45
Solved Threads: 56
Unfortunately I no longer do programming ... but I do remember that I saw the c++ code in the famous ebook "330 java tips" (now a more advanced version is available named "1000 java tips" but its not free)... you can hunt it down on google. The author's website is http://www.javafaq.nu ..
nanosani
Unauthenticated Liar
1,830 posts since Jul 2004
Reputation Points: 45
Solved Threads: 56