?
Solved

compile past bytecode to executable: possible?

Posted on 2003-02-21
7
Medium Priority
?
222 Views
Last Modified: 2010-05-18
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
Comment
Question by:dbyrne03
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 7996268
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
 

Author Comment

by:dbyrne03
ID: 7996925
 Fascinating, CEHJ.  Do you know how this is done?  
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 7998529
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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

Author Comment

by:dbyrne03
ID: 8000536
Is the JVM a sinlge file or a group of them?  How do you "associate" the two "inside the executable"?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 8000595
JVM is usually one or more DLLs.
0
 

Author Comment

by:dbyrne03
ID: 8000702
I take it the executable must be written in a language other than java (say, VB)?
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 150 total points
ID: 8000750
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

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses
Course of the Month12 days, 21 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question