It's not a secret anymore!
The moose likes Beginning Java and the fly likes using jit compilers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "using jit compilers" Watch "using jit compilers" New topic

using jit compilers

karim qazi

Joined: Mar 22, 2001
Posts: 20
how do you specifify to use jit compiler when running a class?
also can anyone explain how the jit complier works?
Michael Fitzmaurice
Ranch Hand

Joined: Aug 22, 2001
Posts: 168
Hi Karim
I think if you are using JDK/JRE 1.3 onwards the default JVM is HotSpot, so you are using a JIT compiler unless you specify otherwise. When you come to run your application, if you use the -classic switch, you will use the 'classic' VM, without a JIT compiler.
If you are in doubt about which VM you are using, just type:
java -version
at the command line.
A little bit more info can be found here:
Alternatively, go to the sun site and read up on the HotSpot VM.
Hope this helps

"One good thing about music - when it hits, you feel no pain"
Bob Marley

"One good thing about music - when it hits, you feel no pain" <P>Bob Marley
I agree. Here's the link:
subject: using jit compilers
It's not a secret anymore!