Can I compile java code directly to native x86 binary (exe file)?

i wnat to know if i can compile java code directly to native x86 binary ( the exe file) !!
i am using jbuilder and want to compile my code into exe file !!

Umm, no… Java was written so that the pseudo-binary code produced will run on all architectures. Java compiles into byte code which is then run via the java virtual machine. The JVM then converts the byte-code to binary form specific to the architecture it runs on. This makes java be able to run on any architecture that has a JVM with no modifications.

/MLS

what MLS said :slight_smile:

however there are vms that can bind your compiled java code together with the vm into one executable.

Originally posted by blackcheck
however there are vms that can bind your compiled java code together with the vm into one executable.

Just to add to what I would have said… it also makes the executable(.exe file) much larger so be aware of that.

Yes, you can. I know Excelsior Jet can do it and there are a few other packages that will do it. None I have tried worked perfectly (for me anyway).

Brian
Got Mp3 CDs? Make GREAT CD Inserts for them with
MACCC: http://maccc.filenabber.com
(it’s freeware)