agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] Failed to create Java VM
Date: Mon, 8 Nov 2004 15:40:02 +0100
Message-ID: <thhal-04B1rArlT30AaLOAnByMBx9aFuOChl3@mailblocks.com> (raw)
In-Reply-To: <5F4ED4205E00D6119BFE009027DE39090793EF54@MLSW00103>

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
> 







view thread (16+ messages)  latest in thread

Message-ID: <thhal-04B1rArlT30AaLOAnByMBx9aFuOChl3@mailblocks.com>
Permalink:  ../thhal-04B1rArlT30AaLOAnByMBx9aFuOChl3@mailblocks.com/
Also on:    postgresql.org/message-id/thhal-04B1rArlT30AaLOAnByMBx9aFuOChl3@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] Failed to create Java VM
  In-Reply-To: <thhal-04B1rArlT30AaLOAnByMBx9aFuOChl3@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox