Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

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?
0
dbyrne03
Asked:
dbyrne03
  • 4
  • 3
1 Solution
 
CEHJCommented:
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.
0
 
dbyrne03Author Commented:
 Fascinating, CEHJ.  Do you know how this is done?  
0
 
CEHJCommented:
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.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
dbyrne03Author Commented:
Is the JVM a sinlge file or a group of them?  How do you "associate" the two "inside the executable"?
0
 
CEHJCommented:
JVM is usually one or more DLLs.
0
 
dbyrne03Author Commented:
I take it the executable must be written in a language other than java (say, VB)?
0
 
CEHJCommented:
The original language is immaterial as long as it can be compiled into an executable. I don't know much about VB, but AFAIK like Java, it's an interpreted language, but unlike Java, it can be compiled into an executable.

It would be amusing though if VB does this by providing an internal interpreter that interprets the VB ;-)

Be careful though, as this conversation's getting recursive ;-)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now