This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes How to convert java byte code(.class) into native code(*.exe) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to convert java byte code(.class) into native code(*.exe)" Watch "How to convert java byte code(.class) into native code(*.exe)" New topic
Author

How to convert java byte code(.class) into native code(*.exe)

Sandeep Ghosh
Ranch Hand

Joined: Jan 23, 2002
Posts: 145
Hi,
Could we convert our java byte code program (.class file) into native code(.exe).Is there any utility in JDK1.3 for this purpose.
I am sorry if this type of question has been already posted.
Thanks in adv
Sonu
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
Some IDEs like Metroworks will deploy your app as an .exe.
You can also get a bytecode compiler that will compile your .class files into actual platform-dependant machine code. This of course makes your application non-portable. And, you should realize that with the state of modern optimizers and just-in-time compilers, some operations in your .exe could actually be *slower* than normal java bytecode. Just because it's compiled doesn't make it faster!!
Here's a url for Jet, a java bytecode compiler for windows:
http://www.excelsior-usa.com/home.html


Rob
SCJP 1.4
 
 
subject: How to convert java byte code(.class) into native code(*.exe)