public inbox for [email protected]  
help / color / mirror / Atom feed
[Pljava-dev] org.postgresql.util.PSQLException: ERROR: could not load library "/opt/pljava/pljava.so": libjvm.so: cannot open shared object file: No such file or directory
3+ messages / 0 participants
[nested] [flat]

* [Pljava-dev] org.postgresql.util.PSQLException: ERROR: could not load library "/opt/pljava/pljava.so": libjvm.so: cannot open shared object file: No such file or directory
@ 2008-10-03 05:18 
  2008-10-03 06:52 ` [Pljava-dev] org.postgresql.util.PSQLException: ERROR: could not load library "/opt/pljava/pljava.so": libjvm.so: cannot open shared object file: No such file or directory 
  0 siblings, 1 reply; 3+ messages in thread

From:  @ 2008-10-03 05:18 UTC (permalink / raw)


I've done a lot of installs on x86 machines - no problems.

This is my first install on X64 using http://pgfoundry.org/frs/download.php/1591/pljava-x86_64-unknown-linux-gnu-pg8.3-1.4.0.tar.gz

I'm trying to run: java -cp postgresql.jar:pljava.jar:deploy.jar org.postgresql.pljava.deploy.Deployer -database adempiere -user adempiere -password  -install

The error I'm getting is:

org.postgresql.util.PSQLException: ERROR: could not load library "/opt/pljava/pljava.so": libjvm.so: cannot open shared object file: No such file or directory

I've see comments above making sure my jvm is 64 bit and it is:

adempiere at www:~$ /usr/lib/jvm/java-6-sun/bin/java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)

Any ideas?

Many thanks in advance...

Chris

_________________________________________________________________
Get all your favourite content with the slick new MSN Toolbar - FREE
http://clk.atdmt.com/UKM/go/111354027/direct/01/



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* [Pljava-dev] org.postgresql.util.PSQLException: ERROR: could not load library "/opt/pljava/pljava.so": libjvm.so: cannot open shared object file: No such file or directory
  2008-10-03 05:18 [Pljava-dev] org.postgresql.util.PSQLException: ERROR: could not load library "/opt/pljava/pljava.so": libjvm.so: cannot open shared object file: No such file or directory 
@ 2008-10-03 06:52 ` 
  2008-10-04 04:27   ` [Pljava-dev] org.postgresql.util.PSQLException: ERROR: could not load library "/opt/pljava/pljava.so": libjvm.so: cannot open shared object file: No such file or directory 
  0 siblings, 1 reply; 3+ messages in thread

From:  @ 2008-10-03 06:52 UTC (permalink / raw)

I would start by checking my SELinux settings (/etc/sysconfig/selinux on 
RedHat). If they are enforced (which is default on many new Linux 
distributions) you'd probably not be allowed to load a shared object 
file from /opt/pljava.

I had this problem recently and almost went crazy before I found the 
cause of the problem.

Also make sure that libjvm.so is in your linking path (run 'ldconfig -v' 
and make sure it's there).

You can also check if pljava.so can find it's dependencies by running:

ldd /opt/pljava/pljava.so

For the x86_64 version of pljava I had to build it from source to get it 
working for some reason. I didn't get the precompiled to work.

/Daniel

Carolyn Green skrev:
> I've done a lot of installs on x86 machines - no problems.
>
> This is my first install on X64 using http://pgfoundry.org/frs/download.php/1591/pljava-x86_64-unknown-linux-gnu-pg8.3-1.4.0.tar.gz
>
> I'm trying to run: java -cp postgresql.jar:pljava.jar:deploy.jar org.postgresql.pljava.deploy.Deployer -database adempiere -user adempiere -password  -install
>
> The error I'm getting is:
>
> org.postgresql.util.PSQLException: ERROR: could not load library "/opt/pljava/pljava.so": libjvm.so: cannot open shared object file: No such file or directory
>
> I've see comments above making sure my jvm is 64 bit and it is:
>
> adempiere at www:~$ /usr/lib/jvm/java-6-sun/bin/java -version
> java version "1.6.0_06"
> Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)
>
> Any ideas?
>
> Many thanks in advance...
>
> Chris
>
> _________________________________________________________________
> Get all your favourite content with the slick new MSN Toolbar - FREE
> http://clk.atdmt.com/UKM/go/111354027/direct/01/
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at pgfoundry.org
> http://pgfoundry.org/mailman/listinfo/pljava-dev
>   


-- 
Daniel Tamm

Notima AB
L?rjungev?gen 6
136 69 Vendels? 

Tel: 08 - 776 31 30
Mobil: 073 - 786 97 37





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* [Pljava-dev] org.postgresql.util.PSQLException: ERROR: could not load library "/opt/pljava/pljava.so": libjvm.so: cannot open shared object file: No such file or directory
  2008-10-03 05:18 [Pljava-dev] org.postgresql.util.PSQLException: ERROR: could not load library "/opt/pljava/pljava.so": libjvm.so: cannot open shared object file: No such file or directory 
  2008-10-03 06:52 ` [Pljava-dev] org.postgresql.util.PSQLException: ERROR: could not load library "/opt/pljava/pljava.so": libjvm.so: cannot open shared object file: No such file or directory 
@ 2008-10-04 04:27   ` 
  0 siblings, 0 replies; 3+ messages in thread

From:  @ 2008-10-04 04:27 UTC (permalink / raw)


Hi Daniel,

Thanks for the ld tips - it helped me find the problem.  In ld.so.conf I was pointing to i386 of the jre.  Changing this to amd64 fixed it.

was:
/lib/i386
...

now:
/lib/amd64
...

Maybe the installation docs should state this change for amd64 hardware?

Many thanks,

Chris

----------------------------------------
> Date: Fri, 3 Oct 2008 08:52:53 +0200
> From: daniel at notima.se
> To: pljava-dev at pgfoundry.org
> Subject: Re: [Pljava-dev] org.postgresql.util.PSQLException: ERROR: could not load library "/opt/pljava/pljava.so": libjvm.so: cannot open shared object file: No such file or directory
> 
> I would start by checking my SELinux settings (/etc/sysconfig/selinux on 
> RedHat). If they are enforced (which is default on many new Linux 
> distributions) you'd probably not be allowed to load a shared object 
> file from /opt/pljava.
> 
> I had this problem recently and almost went crazy before I found the 
> cause of the problem.
> 
> Also make sure that libjvm.so is in your linking path (run 'ldconfig -v' 
> and make sure it's there).
> 
> You can also check if pljava.so can find it's dependencies by running:
> 
> ldd /opt/pljava/pljava.so
> 
> For the x86_64 version of pljava I had to build it from source to get it 
> working for some reason. I didn't get the precompiled to work.
> 
> /Daniel
> 
> Carolyn Green skrev:
>> I've done a lot of installs on x86 machines - no problems.
>>
>> This is my first install on X64 using http://pgfoundry.org/frs/download.php/1591/pljava-x86_64-unknown-linux-gnu-pg8.3-1.4.0.tar.gz
>>
>> I'm trying to run: java -cp postgresql.jar:pljava.jar:deploy.jar org.postgresql.pljava.deploy.Deployer -database adempiere -user adempiere -password  -install
>>
>> The error I'm getting is:
>>
>> org.postgresql.util.PSQLException: ERROR: could not load library "/opt/pljava/pljava.so": libjvm.so: cannot open shared object file: No such file or directory
>>
>> I've see comments above making sure my jvm is 64 bit and it is:
>>
>> adempiere at www:~$ /usr/lib/jvm/java-6-sun/bin/java -version
>> java version "1.6.0_06"
>> Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
>> Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)
>>
>> Any ideas?
>>
>> Many thanks in advance...
>>
>> Chris
>>
>> _________________________________________________________________
>> Get all your favourite content with the slick new MSN Toolbar - FREE
>> http://clk.atdmt.com/UKM/go/111354027/direct/01/
>> _______________________________________________
>> Pljava-dev mailing list
>> Pljava-dev at pgfoundry.org
>> http://pgfoundry.org/mailman/listinfo/pljava-dev
>>   
> 
> 
> -- 
> Daniel Tamm
> 
> Notima AB
> L?rjungev?gen 6
> 136 69 Vendels? 
> 
> Tel: 08 - 776 31 30
> Mobil: 073 - 786 97 37
> 
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at pgfoundry.org
> http://pgfoundry.org/mailman/listinfo/pljava-dev

_________________________________________________________________
Get all your favourite content with the slick new MSN Toolbar - FREE
http://clk.atdmt.com/UKM/go/111354027/direct/01/




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2008-10-04 04:27 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-10-03 05:18 [Pljava-dev] org.postgresql.util.PSQLException: ERROR: could not load library "/opt/pljava/pljava.so": libjvm.so: cannot open shared object file: No such file or directory 
2008-10-03 06:52 ` 
2008-10-04 04:27   ` 

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox