agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] CVS HEAD is now Java 6.
Date: Fri, 02 Dec 2011 10:43:28 -0800
Message-ID: <4ED91C50.5030201@hogranch.com> (raw)
In-Reply-To: <C1A6B6FC8196CF43B9B4D0D2C63BFA5A18CB4FCF39@SPR3V9.office.local>
References: <x6r51s1vrt.fsf@2ndquadrant.com>
	<4ED7E5DE.7040703@hogranch.com>
	<C1A6B6FC8196CF43B9B4D0D2C63BFA5A18CB4FCF39@SPR3V9.office.local>

On 12/02/11 1:17 AM, David Gradwell wrote:
> Just so you know, I'm using the current version of pljava against 64 bit postgres 9.0 and jdk1.6.0_26.

arrgh, what *AM* i doing wrong, then??

both components I built are in /usr/share/pljava like this...

$ ls -l /usr/share/pljava
total 1452
-rw-r--r--  1 root root  168144 Dec  1 13:59 pljava.jar
-rwxr-xr-x. 1 root root 1310941 Dec  1 13:59 pljava.so

I have this in my postgresql.conf...


dynamic_library_path = '$libdir:/usr/share/pljava'
custom_variable_classes = 'pljava'
pljava.classpath = '/usr/share/pljava/pljava.jar'

when I built the modules, I used the following environment...

export JDK_HOME=/usr/java/jdk1.6.0_26
export JAVA_HOME=/usr/java/jdk1.6.0_26
export JRE_HOME=/usr/java/jdk1.6.0_26/jre
export PATH=$JDK_HOME:/usr/pgsql-9.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/java/jdk1.6.0_26/jre/lib/amd64/server
export USE_LD_RPATH=1
make

the debug dump definitely shows its being linked in and successfully 
calling back to java, ldd shows the linkage is clean too...

$ ldd /usr/share/pljava/pljava.so
         linux-vdso.so.1 =>  (0x00007fff2b7f6000)
         libjvm.so => 
/usr/java/jdk1.6.0_26/jre/lib/amd64/server/libjvm.so (0x00007f5c5bd5a000)
         libc.so.6 => /lib64/libc.so.6 (0x00007f5c5b9cd000)
         libm.so.6 => /lib64/libm.so.6 (0x00007f5c5b749000)
         libdl.so.2 => /lib64/libdl.so.2 (0x00007f5c5b545000)
         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5c5b327000)
         /lib64/ld-linux-x86-64.so.2 (0x0000003c5f800000)




-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast





view thread (12+ messages)  latest in thread

Message-ID: <4ED91C50.5030201@hogranch.com>
Permalink:  ../4ED91C50.5030201@hogranch.com/
Also on:    postgresql.org/message-id/4ED91C50.5030201@hogranch.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] CVS HEAD is now Java 6.
  In-Reply-To: <4ED91C50.5030201@hogranch.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