Java Glossary : JIT

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : J words : JIT.

JIT
Just In Time compiler. Compiling to native code just before the program runs. The results might be cached, but typically no permanent *.exe file is created. Contrast that with a native mode compiler. You get better debugging stack traces with the JIT turned off, and typically you get fewer JVM bugs.

In java.exe sometimes you can turn off the jit like this:

java.exe -Djava.compiler=NONE HelloWorld

make sure the -D option comes first, or it will be taken as a parameter to HelloWorld.

With Symantec, you can turn the JIT feature on and off this way:

REM use JIT
SET JAVA_COMPCMD=
REM use Interpreter
SET JAVA_COMPCMD=DIS

Unfortunately, capturing these commands in a BAT file has no effect since environment changes are discarded as soon as the bat file finishes.

In Netscape, you can turn the JIT feature on and off this way:

@echo off
rem jiton:jitoff d:
cd"Program Files\Netscape\Communicator\Program\Java\bin"
if"%1"=="on"rename jit3240.off jit3240.dll>NUL
if"%1"=="off"rename jit3240.dll jit3240.off>NUL
if exist jit3240.dll echo jit now on
if exist jit3240.off echo jit now off
rem -30-


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 1884.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/jit.html J:\mindprod\jgloss\jit.html