dbyrne03
asked on
compile past bytecode to executable: possible?
I am currently developing a java app. I know that this app will only need to run on various x86 architectures. This app will also only run on about 50 machines running win2k and a few winXP boxes. I would like to decrease the run time of my application (in other words, speed it up). Is there any parameter that I can throw at javac.exe that will compile my source code past the bytecode stage, all the way to an executable?
No - in a word. There are programs that do turn classes into executables but AFAIK they mostly do it by embedding a JVM in the executable that simply interprets the bytecode.
ASKER
Fascinating, CEHJ. Do you know how this is done?
Well it's pretty simple really - instead of passing a file of bytecodes to be interpreted by a JVM, the two are simply associated inside the executable.
ASKER
Is the JVM a sinlge file or a group of them? How do you "associate" the two "inside the executable"?
JVM is usually one or more DLLs.
ASKER
I take it the executable must be written in a language other than java (say, VB)?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.