From: thhal at mailblocks.com (Thomas Hallgren) Date: Mon, 14 Mar 2005 19:11:14 +0100 Subject: [Pljava-dev] Failed to create Java VM In-Reply-To: References: Message-ID: <4235D3C2.4050408@mailblocks.com> Bruno Domenici Ferreira wrote: > > Hi List, > > > I've installed pl/java on a PostgreSQL 8.01 (Slackware 10), but i'm > have a problem: > > my logs: > > 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 > > My test function: > > CREATE FUNCTION sqlj.getsysprop(VARCHAR) > RETURNS VARCHAR > AS 'java.lang.System.getProperty' > LANGUAGE java; > > my usage function: > > SELECT sqlj.getsysprop('user.homevc'); > ERROR: Failed to create Java VM > > #java -version > java version "1.4.2_04" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) > Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) > > echo $LD_LIBRARY_PATH > /usr/lib/java/jre/lib/i386:/usr/lib/java/jre/lib/i386/client:/usr/lib/java/jre/lib/i386/native_threads:/usr/local/pgsql8/lib/ > > > > I've searched in history list, sun and google and no one solutions works > Whats wrong here!? Anyone could help-me!? Just a hunch, but have you tried what's listed under "zlib conflict" in the release notes http://gborg.postgresql.org/project/pljava/genpage.php?readme Regards, Thomas Hallgren