Skip to main content

How to run JIT without the whole JVM?

3 replies [Last post]
yt7589
Offline
Joined: 2008-05-06
Points: 0

Hi.
Is it possible to extract the code for JIT? I want to use it to convert a set of java class to native format before it deploy to the target machine. Because the target machine has no JDK installed. As you know that JIT can convert java bytecode to native code on the fly. Does any one know how to get the JIT run independent.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
linuxhippy
Offline
Joined: 2004-01-07
Points: 0

Well, I just can assume that he/she would prefer something like this: http://www.excelsior-usa.com/jet.html
Its really an excellent, and worth every dollar.

robilad
Offline
Joined: 2004-05-05
Points: 0
jesdisciple
Offline
Joined: 2008-05-01
Points: 0

That's exactly what the JVM is for; you would need to build your own JVM (no small project) to avoid using an existing one.

You might as well just package the JRE with your program. On the other hand, you could read the specs to find out what your custom JVM would need.