pg.ddx.io  pljava-dev@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Subject: [Pljava-dev] java.sql.SQLException: ERROR: could not load	library undefined symbol: JNI_CreateJavaVM
Date: Mon, 14 Feb 2005 17:44:18 +0100
Message-ID: <thhal-0+23sAu9rxiceFC262XhWtnVzeiPNYu@mailblocks.com> (raw)
In-Reply-To: <1108397126.5256.9.camel@vpj.eevolution>
References: <1108170959.19561.6.camel@vpj.eevolution>
	<20050212170846.71efdca7@emach>
	<1108397126.5256.9.camel@vpj.eevolution>
	<4210D562.8010308@mailblocks.com>
	<thhal-0+m3sAutrxick9UpRd5QpDau5OSLkrA@mailblocks.com>
	<thhal-0+m3sAu1rxic+STlQ1r03CBxTHqmm6r@mailblocks.com>

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






view thread (31+ messages)  latest in thread

Message-ID: <thhal-0+23sAu9rxiceFC262XhWtnVzeiPNYu@mailblocks.com>
Permalink:  ../thhal-0+23sAu9rxiceFC262XhWtnVzeiPNYu@mailblocks.com/
Also on:    postgresql.org/message-id/thhal-0+23sAu9rxiceFC262XhWtnVzeiPNYu@mailblocks.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] java.sql.SQLException: ERROR: could not load	library undefined symbol: JNI_CreateJavaVM
  In-Reply-To: <thhal-0+23sAu9rxiceFC262XhWtnVzeiPNYu@mailblocks.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox