agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] ERROR: could not load library	"/postgresql-7.4.2/libpljava.so": libjvm.so
Date: Tue, 10 Aug 2004 23:04:44 +0200
Message-ID: <4119386C.3090608@mailblocks.com> (raw)
In-Reply-To: <000801c47f15$6265dc60$1964a8c0@syspoint.com.br>
References: <000801c47f15$6265dc60$1964a8c0@syspoint.com.br>

Gilberto,

> I am getting the following error message when i am trying to deploy 
> pl/java
>  
> java.sql.SQLException: ERROR:  could not load library 
> "/postgresql-7.4.2/libpljava.so": libjvm.so: cannot open shared object 
> file: Arquivo ou diret?o n?encontrado
>  

Your LD_LIBRARY_PATH points to the $JAVA_HOME/jre/lib/i386/server but 
not to the directory above it where a lot of neede shared object files 
reside. The error reported from the shared object loader is probably 
somewhat misleading. It does indeed find the libjvm.so but it fails on 
one of its dependencies. Try this setting instead:

$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client

You should never use both the client VM and server VM in your 
LD_LIBRARY_PATH. The client VM is faster on start-up and consumes less 
memory while the server vm is more aggressive with optimizations and 
will run faster in the long run (and consume some more memory).

Regards,

Thomas Hallgren





view thread (4+ messages)  latest in thread

Message-ID: <4119386C.3090608@mailblocks.com>
Permalink:  ../4119386C.3090608@mailblocks.com/
Also on:    postgresql.org/message-id/4119386C.3090608@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] ERROR: could not load library	"/postgresql-7.4.2/libpljava.so": libjvm.so
  In-Reply-To: <4119386C.3090608@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