Discussion Locked

Question about java class files

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
what is the method of converting a class file(*.class) generated by compliling a java program into exigutable(*.exe) file?

3 replies

by bill_h

There are several methods - the best one will depend on your platform and requirements.

If you are looking for a product that converts the classes into a true machine-code executable, check out "The GNU Compiler for the Java(tm) Programming Language" - this can be found at:

http://sources.redhat.com/java/

More info regarding Java compilers is on the "Compiling the Java Programming Language" site:

http://www.bearcave.com/software/java/java_compiler.html

There is a program available from Microsoft called JEXEGEN. An article on MSDN titled "Jexegen" can be found at:

http://www.microsoft.com/java/sdk/40/start.htm?http://www.microsoft.com/Java/sdk/40/pg/tools_cmpdbg_8.htm

(Combine the lines above into a single URL.)

However, you should note that Microsoft docs state "For the most part, jexegen will generate a self-contained static executable. However, there's still a dependency on the Microsoft JVM; it must be on the client machine for the executable to run."

More info is available on the Microsoft site "Microsoft Technologies for Java" at:

http://www.microsoft.com/java/sdk/default.htm

This discussion is closed to new replies.