[Pljava-dev] Failed to create Java VM

From: thhal at mailblocks(dot)com (Thomas Hallgren)
To:
Subject: [Pljava-dev] Failed to create Java VM
Date: 2004-11-08 14:40:02
Message-ID: thhal-04B1rArlT30AaLOAnByMBx9aFuOChl3@mailblocks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Hi,
I've done some investigating (Google'd for "HPI library"). The solutions
vary but one that repeats itself is to add
$JAVA_HOME/jre/lib/i386/native_threads to your LD_LIBRARY_PATH.

I'm puzzled by this since it hasn't come up before. Perhaps the JVM must use
native threads on your particular platform.

Anyway, please let me know if this helps.

Regards,
Thomas Hallgren

> -----Original Message-----
> From: Nageshwar Rao [mailto:NageshwarR at PLANETASIA.COM]
> Sent: Monday, November 08, 2004 11:07 AM
> To: 'Thomas Hallgren'
> Cc: pljava-dev at gborg.postgresql.org
> Subject: RE: [Pljava-dev] Failed to create Java VM
>
> Hi,
> LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client is
> set. I have checked all the parameters but still it is giving me the same
> error.
>
> -----Original Message-----
> From: Thomas Hallgren [mailto:thhal at mailblocks.com]
> Sent: Monday, November 08, 2004 3:03 PM
> To: Nageshwar Rao
> Cc: pljava-dev at gborg.postgresql.org
> Subject: RE: [Pljava-dev] Failed to create Java VM
>
> My guess is that the LD_LIBRARY_PATH seen by the postmaster process is
> incorrect. Perhaps you forgot to export it prior to starting the
> postmaster?
> Or, perhaps it doesn't appoint the needed directories? Normally it should
> look something like this:
>
> LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client
>
> The last entry may end with server instead of client depending on your
> needs.
>
> Please note that this setting must be in effect for the postmaster process
> and not for your client process.
>
> Regards,
> Thomas Hallgren
>
> ________________________________________
> From: Nageshwar Rao [mailto:NageshwarR at PLANETASIA.COM]
> Sent: Monday, November 08, 2004 9:51 AM
> To: 'Thomas Hallgren'
> Subject: RE: [Pljava-dev] Failed to create Java VM
>
> PL/JAVA - PL/JAVA 1.0.0.b5
>
> OS - [postgres at GEML bin]$ uname -a
> Linux GEML 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386
> GNU/Linux
>
> JDK - 1.4.2
>
> Regards
> Rao
>
> -----Original Message-----
> From: Thomas Hallgren [mailto:thhal at mailblocks.com]
> Sent: Monday, November 08, 2004 2:08 PM
> To: Nageshwar Rao; pljava-dev at gborg.postgresql.org
> Subject: RE: [Pljava-dev] Failed to create Java VM
>
> I need some more info in order to help. Which version of PL/Java are you
> using and on what OS (platform and version)? What JDK?
>
> Regards,
> Thomas Hallgren
>
> ________________________________________
> From: pljava-dev-bounces at gborg.postgresql.org
> [mailto:pljava-dev-bounces at gborg.postgresql.org] On Behalf Of Nageshwar
> Rao
> Sent: Monday, November 08, 2004 8:14 AM
> To: 'pljava-dev at gborg.postgresql.org'
> Subject: [Pljava-dev] Failed to create Java VM
>
> I have installed pl/java on postgresl 7.4.x. When executing the function
> ,I
> am getting an error
>
>
> LOG:? There was an error trying to initialize the HPI library.
> LOG:? Please check your installation, HotSpot does not work correctly
> LOG:? when installed in the JDK 1.2 Linux Production Release, or
> LOG:? with any JDK 1.1.x release.
> ERROR:? Failed to create Java VM
> ERROR:? Failed to create Java VM
>
>
> Help is appreciated.
> Thanks
> Rao
>

In response to

Browse pljava-dev by date

  From Date Subject
Next Message Thomas Hallgren 2004-11-10 10:39:17 [Pljava-dev] Re: Libpljava not found
Previous Message Nageshwar Rao 2004-11-08 10:08:52 [Pljava-dev] Failed to create Java VM