JIT compiler "jitc" not found

Hi,

I've just installed JVM 1.4.2 for Unix Systems Services on z/OS 1.4 mainframe.

When I issue the command java -version I get the following:

# java -version

Could not load dll : /usr/lpp/java/IBM/J1.4/bin/libjitc.so

: EDC5157I An internal error has occurred.

Warning: JIT compiler "jitc" not found. Will use interpreter.

java version "1.4.2"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)

Classic VM (build 1.4.2, J2RE 1.4.2 IBM z/OS Persistent Reusable VM build cm142-

20070329 (SR8) (JIT disabled))

I have check for libjitc.so in the java directory and it is there. Java compiles and runs fine. Can anyone help?

[705 byte] By [jnguyen20a] at [2007-11-27 4:03:38]
# 1

OS/400 interprets Java methods until reaching the threshold specified by the os400.jit.mmi.threshold Java system property. After reaching the threshold, OS/400 uses the JIT compiler to compile methods into native machine instructions.

To use the Just-In-Time compiler, you need to set the compiler value to jitc (default it isn't). You can set the value by adding an environment variable or setting the java.compiler system property. Select one method from the list below to set the compiler value:

* From a command line prompt on your iSeries server, add the environment variable by using the Add Environment Variable (ADDENVVAR) command. Then, run your Java program using the Run Java (RUNJVA) command or JAVA command. For example, use:

ADDENVVAR ENVVAR (JAVA_COMPILER) VALUE(jitc)

JAVA CLASS(Test)

* Set the java.compiler system property on the iSeries command line. For example, enter JAVA CLASS(Test) PROP((java.compiler jitc))

* Set the java.compiler system property on the Qshell Interpreter command line. For example, enter java -Djava.compiler=jitc Test

Once you set this value, the JIT compiler optimizes all of the Java code before running it.

rayssa.moona at 2007-7-12 9:08:24 > top of Java-index,Desktop,Runtime Environment...
# 2

Hi Rayssa,

Thanks for the reply. I have tried the following:

java -Djava.compiler=jitc Test

I still get the following:

Could not load dll : /usr/lpp/java/IBM/J1.4/bin/libjitc.so

Remember that this is z/OS 1.4 and I was under the impression that JITC is enabled by default.

jnguyen20a at 2007-7-12 9:08:24 > top of Java-index,Desktop,Runtime Environment...
# 3
i have also tried export JAVA_COMPILER=libjitc.so ...........to no avail
jnguyen20a at 2007-7-12 9:08:24 > top of Java-index,Desktop,Runtime Environment...
# 4
anyone?
jnguyen20a at 2007-7-12 9:08:24 > top of Java-index,Desktop,Runtime Environment...