Operating System - HP-UX
1752577 Members
4304 Online
108788 Solutions
New Discussion юеВ

Re: JVM Problems - Unable to initialize threads

 
Robin King_1
Regular Advisor

JVM Problems - Unable to initialize threads

We have two 'identical systems' running HP-UX 11.11. Once was ignited from the other. Both systems have Oracle installed.

The DBA's are trying to start a Java installtion app for Oracle on the second box, but are being given the following error:

Unable to initialize threads: cannot find class java/lang/Thread
Could not create Java VM

I've had a look round and this appears to be an issue with JAVA_HOME or something similar. I'm not sure how to resolve it though. I've compared $PATH for oracle user on both servers and they're identical.

I have seem to have three versions of Java running, 1.2, 1.4 and 1.5. I've tried exporting JAVA_HOME=/opt/java1.5 and /opt/java1.5/bin, but neither seem to resolve the problem.

I found an hp doc that suggested checking the Java Programmers guide, but that didn't really help.

Any help would be appreciated.

Thanks

Robin
5 REPLIES 5
Giacomo TOTTI
Advisor

Re: JVM Problems - Unable to initialize threads

Hi,
what happens if you try java-version command(whith oracle user) on both servers? Are there any differences?

Hope this helps

Giacomo
Mahesh Kumar Malik
Honored Contributor

Re: JVM Problems - Unable to initialize threads

Hi Robin

Try installing latest Java patches.Pls refer to following site:

http://www5.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_30544&context=hpux:800:11:11

Regards
Mahesh
Robin King_1
Regular Advisor

Re: JVM Problems - Unable to initialize threads

Giacomo

The versions are the same:

erbhap2:9.2.0:LNKT:/apps/oracle::/opt/java1.5/bin/java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-_24_nov_2004_16_29)
Java HotSpot(TM) Server VM (build 1.5.0 FCS (JS B64) jinteg:11.24.04-15:51 PA2.0 (aCC_AP), mixed mode)

However we seem to have three versions installed:

# ls /opt/java*

/opt/java1.2:
jre plugin

/opt/java1.4:
3D.release.notes LICENSE.Java3D include man
COPYRIGHT THIRDPARTYLICENSEREADME.txt java.os11.release.notes
COPYRIGHT.Java3D bin jre
LICENSE demo lib

/opt/java1.5:
COPYRIGHT bin java.os11.release.notes.html sample
LICENSE demo jre
THIRDPARTYLICENSEREADME.txt include lib
Robin King_1
Regular Advisor

Re: JVM Problems - Unable to initialize threads

Manesh

I've run the HPjconfig 3.0, and the only patch it's highlighted is PHKL_32927
mark rozhin
New Member

Re: JVM Problems - Unable to initialize threads

This problem is too fundamental to be worrying about patches.
That is your CLASSPATH set to?
What does your java command line look like?
Is there a bootclasspath?
Has rt.jar been edited?