There's a free compiler (High Performance Compiler for Java) available for download from
IBM's AlphaWorks site. The platforms support are AIX, OS/2, Windows NT/95/98. Check it out
at
http://www.alphaWorks.ibm.com/
or this
Just create a manifest file and add it while creating jar file
let us consider you have compiled java code(.class file) which
has main method in it(i,e it is the main class file where your
execution starts)
1. create a manifest file(or any file)
example:c:\edit Manifest.mf
add this line to this file
Main-Class: Your_Main_CLASS_NAME (space required after : )
just the above line says to JVM where to start execution
2. create a JAR file.
c:\jar cmfv0 Manifest.mf myjar.jar all_your_class_files
this creates a jar file which is executable file
double clicking this file will make it run. If you want it on
your desktop create shortcut or directly place it