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

vbimport

#1

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 !!


#2

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


#3

what MLS said :slight_smile:


#4

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


#5

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.


#6

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)