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 using jit compilers 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 "using jit compilers" Watch "using jit compilers" New topic
Author

using jit compilers

karim qazi
Greenhorn

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?
thanks.
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:
http://www.javaworld.com/javaworld/jw-03-2000/jw-03-javaperf_2.html
Alternatively, go to the sun site and read up on the HotSpot VM.
Hope this helps
Michael

------------------
"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
 
 
subject: using jit compilers