[Pljava-dev] java.sql.SQLException: ERROR: could not load library undefined symbol: JNI_CreateJavaVM

Thomas Hallgren thhal at mailblocks.com
Mon Feb 14 16:44:18 UTC 2005


Victor wrote:

>Hi guys!
>
>yes, I set my
>LD_LIBRARY_PATH=:/usr/lib/jvm/java-1.4.2-sun-1.4.2.06/jre/lib/i386:/usr/lib/jvm/java-1.4.2-sun-1.4.2.06/jre/lib/i386/client:/usr/lib/jvm/java-1.4.2-sun-1.4.2.06/jre/lib/i386/native_threads
>
>this is my java environment 
>java -version
>java version "1.4.2_06"
>Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
>Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
>
>
>I compiled postgresql 8.0.1 and pljava for linux amd64
>
>I am using SUSE 9.2 for AMD64, but I get the same problem (ERROR:  could
>not load library
>"/usr/local/pgsql/lib/libpljava.so": /usr/local/pgsql/lib/libpljava.so:
>undefined symbol: JNI_CreateJavaVM) any idea ?
>  
>
Your LD_LIBRARY_PATH indicates that you're using a 32-bit JVM. My JDK 
installation has an amd64 directory under lib, not an i386.

What JAVA_HOME are you using when you build? Does it appoint the same 
JVM? One cause of this problem could be that you link using a 64bit JVM 
and then try running it using a 32bit JVM.

Regards,
Thomas Hallgren





More information about the Pljava-dev mailing list