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 10:32:52 +0100
Message-ID: <thhal-0n9VqAgFS30Avm7fbglzA7b6VnNtZFL@mailblocks.com> (raw)
In-Reply-To: <5F4ED4205E00D6119BFE009027DE39090793EF53@MLSW00103>

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-0n9VqAgFS30Avm7fbglzA7b6VnNtZFL@mailblocks.com>
Permalink:  ../thhal-0n9VqAgFS30Avm7fbglzA7b6VnNtZFL@mailblocks.com/
Also on:    postgresql.org/message-id/thhal-0n9VqAgFS30Avm7fbglzA7b6VnNtZFL@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-0n9VqAgFS30Avm7fbglzA7b6VnNtZFL@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