Error from JNI_CreateJavaVM

Does anyone know what the following message means?

I am linking libjvm.so into my C application and invoking

the JVM from the C code.

I am using JDK 1.3.1 for Solaris.

Thanks,

John

There was an error trying to initialize the HPI library.

Please check your installation, HotSpot does not work correctly

when installed in the JDK 1.2 Solaris Production Release, or

with any JDK 1.1.x release.

[465 byte] By [jawnh] at [2007-9-26 9:27:41]
# 1
Did you check your PATH and your shared library path to see if there are any other versions of java in it?
jschell at 2007-7-1 20:49:54 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

My LD_LIBRARY_PATH is set to NULL and there is only

the 1.3.1 version of JAVA in my path. I have statically

linked libjvm.so into my existing C application. I am

beginning to suspect that there is some kind of compile

or link issue going on with gcc.

I can get a very simple test program to work, but not

the BIG application. And in the production env. for this

app., there are a ton of switches being used and other

libraries linked in. Sigh, it may become a binary search

kind of issue to find the conflict. I do NOT believe that

anything else I link in contains another version of the

JVM though.

John

jawnh at 2007-7-1 20:49:54 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3

I figured it out. It was my LD_LIBRARY_PATH after all.

Our BIG application has a large script that starts the

executable program. Well this script in turn calls 3 or 4

other scripts....and someone was mangling the

LD_LIBRARY_PATH. I changed the script to make sure

this didn't happen and it now works.

Thanks,

John

jawnh at 2007-7-1 20:49:54 > top of Java-index,Java HotSpot Virtual Machine,Specifications...