Java: Way to compile your *.java files into *.exe's??

TJN23

Golden Member
May 4, 2002
1,670
0
0
I have a *.java file that I compile using javac and run it in the command prompt.

Is there a utility to "further compile" these programs into some sort of executable form on a windows system.

I'd like the program to run on pretty much any windows machine.

TIA

tim
 

johnjbruin

Diamond Member
Jul 17, 2001
4,401
1
0
I use JBuilder.
It has a native executable builder for linux/unix/windoews etc...
The executabes still require that the target machine have JRE installed.
I use this so I am not aware of any free ones out there.
 

TJN23

Golden Member
May 4, 2002
1,670
0
0
i see, so creating JAR files will be executeable in windows? anyone know how to do this - or even EXEs using free utilities?

thanks
 

TJN23

Golden Member
May 4, 2002
1,670
0
0
thanks guys, i figured it out.

1. use jar to wrap up all the classes for the corresponding .java file
2. use a program like JEXECreator to create an .exe that points to the .jar file
3. run your new *.exe program from any directory assuming the jar file is contained in that directory

easy enough for my purposes