Link to home
Start Free TrialLog in
Avatar of dbyrne03
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?
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of dbyrne03
dbyrne03

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.
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.
I take it the executable must be written in a language other than java (say, VB)?
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial