Converting java bytecode to machine code???


 
Thread Tools Search this Thread
Top Forums Programming Converting java bytecode to machine code???
# 1  
Old 04-13-2012
Converting java bytecode to machine code???

Hi friends,
I hope you are fine and doing well. Java compiles its source code into an intermediary form called the bytecode, which has to be interpreted into machine code by the JVM. My question is, is it possible to produce machine code from java source code? For example, suppose I write the hello world program in java and compile it, normally i would have to use the jre to interpet the created class file. Is it possible to convert this hello world java source code directly into an executable form, so that I can execute that program without any kind of interpreter. I have heard about GCJ that it converts java source code or bytecode into machine code, does it really do so? I will really appreciate your wonderful replies.

Thanks in advance!
# 2  
Old 04-13-2012
gcj should do the job.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to run perl script in remote machine from java application?

Hi I am working in a java application. I need to execute a perl script(linux) which is in remote machine in java application from local machine(windows). I need to do this process automatically that is without manual intereption. Now I will explain the process clearly, at present to run the... (1 Reply)
Discussion started by: bassma
1 Replies

2. Programming

can i have an optimal solution for this java code ? Facing Java heap space problem even at 3GB heaps

My desired output is run: for this 1 for this 2 for this 3 for this 4 for this 5 for this 1,2 1->2 for this 2,3 2->3 for this 3,4 3->4 for this 4,5 4->5 for this 1,2,3 1->2,3 (2 Replies)
Discussion started by: vaibhavkorde
2 Replies

3. UNIX for Dummies Questions & Answers

How can i understand if a Java Virtual Machine is installed on Unix??

Hello, i would like to figute out, if there is any JVM installed on my unix account. How can i figure that out?? Thanks (1 Reply)
Discussion started by: g_p
1 Replies

4. Programming

Check if user logged into remote machine via C++ / Java

Hi, I have a program running on HP-UX and it must checkwhether a user has already logged-in to another machine. The hostname of the other machine is known when the check has to be made. Is there a way which this can be accomplished using C++ or Java? If not I could parse the output of a... (6 Replies)
Discussion started by: johnmmcparland
6 Replies

5. Programming

Ping remote UNIX machine from a java application

Hi Friends, Can some one please guide me on how to make a script run on a remote UNIX machine from a java application. Or may if you can just tell me how do u ping to the remote UNIX machine using java code. Been looking for the solution since 5-6 hrs, didn't got any where near :( Thanks. (1 Reply)
Discussion started by: Sanjay MD
1 Replies

6. UNIX for Advanced & Expert Users

About Java Virtual Machine

Can Someone help me for Java VM? How can I see version of JVM and JDK on UNIX AIX 4.3? (2 Replies)
Discussion started by: Niko
2 Replies

7. UNIX for Dummies Questions & Answers

About Java Virtual Machine

How can I Install Java Virtual Machine on Unix AIX 4.3 . (1 Reply)
Discussion started by: Niko
1 Replies
Login or Register to Ask a Question