File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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