From: pierce at hogranch.com (John R Pierce) Date: Fri, 02 Dec 2011 10:43:28 -0800 Subject: [Pljava-dev] CVS HEAD is now Java 6. In-Reply-To: References: <4ED7E5DE.7040703@hogranch.com> Message-ID: <4ED91C50.5030201@hogranch.com> 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