Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sandeep Ghosh
Ranch Hand
Posts: 145
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic