PlasmaDragon wrote:
Using the Netbeans IDE or the command line, is it possible for me to
turn my Java code into a native executable for x86 WindowsXP? If not,
is there a free tool I can use to turn .java or .class files into
executables?
We had this problem at work once, how to make an "executable" for our
java program.
Its easy actually, all you need to do is load up your VC++ and create an
empty win32 application. Create yourself a fancy icon (metallic-style
please :-) ) and then load the java class manually.
There are several ways to do this. You can actually do something like
ShellExecuteEx( "javaw -jar MyApp.jar",... );
or there is a way to manually load the JVM. But i never did it this way.
What we used to do is keep the command in an ".ini" file on the client's
machine. The exe would just concatenate the parameters but and prepend
the "javaw.exe" exe to run (weak security measure).
Hope it helps.