Hello. I installe IBMJava2 (1.4.2 and 1.3.1 .rpm versions downloaded from IBM Java site) with all available Fedora Core 2 updates and have this messager errors:
cd /opt/IBMJava2-142 bin/java -version
JVMDG080: Cannot find class com/ibm/jvm/Trace JVMXM012: Error occurred in final diagnostics initialization Could not create the Java virtual machine.
cd /opt/IBMJava2-131 bin/java -version
JVMDG080: Cannot find class com/ibm/jvm/Trace Error occurred in diagnostics initialization(2) Could not create the Java virtual machine.
uname -a
Linux name.domain.com 2.6.8-1.521smp #1 SMP Mon Aug 16 09:25:06 EDT 2004 i686 i686 i386 GNU/Linux ---------------------------------------------------------------------------------------------------------------------------------------
If I boot Fedora Core 2 with kernel 2.6.7-1.494.2.2smp or below, no problem occurs
cd /opt/IBMJava2-142 bin/java -version
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2) Classic VM (build 1.4.2, J2RE 1.4.2 IBM build cxia321420-20040626 (JIT enabled: jitc))
same for 1.3.1 version
cd /opt/IBMJava2-131 bin/java -version
java version "1.3.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1) Classic VM (build 1.3.1, J2RE 1.3.1 IBM build cxia32131-20040527a (JIT enabled: jitc))
Any idea?
Regards
Daniel
On Sat, Sep 04, 2004 at 11:06:43AM +0200, Daniel Ulfe wrote:
Hello. I installe IBMJava2 (1.4.2 and 1.3.1 .rpm versions downloaded from IBM Java site) with all available Fedora Core 2 updates and have this messager errors:
cd /opt/IBMJava2-142 bin/java -version
JVMDG080: Cannot find class com/ibm/jvm/Trace JVMXM012: Error occurred in final diagnostics initialization Could not create the Java virtual machine.
Ernie McCracken holycrap@cavtel.net writes:
On Sat, Sep 04, 2004 at 11:06:43AM +0200, Daniel Ulfe wrote:
Hello. I installe IBMJava2 (1.4.2 and 1.3.1 .rpm versions downloaded from IBM Java site) with all available Fedora Core 2 updates and have this messager errors:
cd /opt/IBMJava2-142 bin/java -version
JVMDG080: Cannot find class com/ibm/jvm/Trace JVMXM012: Error occurred in final diagnostics initialization Could not create the Java virtual machine.
If this is the same bug I saw a couple days ago, then it can be worked around -- it's a bug in the kernel's "should I use execshield?" code. So, disabling execshield altogether will fix it, though at a potential cost of security.
echo 0 > /proc/sys/kernel/exec-shield
Comment added to bug as well.
Chip
Hi,
I had the same problem. I found this wonderful site:
http://cymulacrum.net/writings/java/ibm-java.html
And somewhere in that I found a clue that told me to turn off the Just In Time (JIT) compiler. I forget how to do that -- see the IBM Java2 docs, I believe -- but once I did I got Java working. Here's my java version:
$ java -version 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 build cxia321420-20040626 (JIT disabled))
Output from uname -a:
$ uname -a Linux name.domain.net 2.6.8-1.521smp #1 SMP Mon Aug 16 09:25:06 EDT 2004 i686 i686 i386 GNU/Linux
Take care,
Kurt Hansen khansen@charityweb.net Daniel Ulfe wrote:
Hello. I installe IBMJava2 (1.4.2 and 1.3.1 .rpm versions downloaded from IBM Java site) with all available Fedora Core 2 updates and have this messager errors:
cd /opt/IBMJava2-142 bin/java -version
JVMDG080: Cannot find class com/ibm/jvm/Trace JVMXM012: Error occurred in final diagnostics initialization Could not create the Java virtual machine.
cd /opt/IBMJava2-131 bin/java -version
JVMDG080: Cannot find class com/ibm/jvm/Trace Error occurred in diagnostics initialization(2) Could not create the Java virtual machine.
uname -a
Linux name.domain.com 2.6.8-1.521smp #1 SMP Mon Aug 16 09:25:06 EDT 2004 i686 i686 i386 GNU/Linux
If I boot Fedora Core 2 with kernel 2.6.7-1.494.2.2smp or below, no problem occurs
cd /opt/IBMJava2-142 bin/java -version
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2) Classic VM (build 1.4.2, J2RE 1.4.2 IBM build cxia321420-20040626 (JIT enabled: jitc))
same for 1.3.1 version
cd /opt/IBMJava2-131 bin/java -version
java version "1.3.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1) Classic VM (build 1.3.1, J2RE 1.3.1 IBM build cxia32131-20040527a (JIT enabled: jitc))
Any idea?
Regards
Daniel