From: pierce at hogranch.com (John R Pierce) Date: Fri, 12 Oct 2012 18:46:47 -0700 Subject: [Pljava-dev] pljava on AIX for postgres 9.1.x and IBM AIX Java 6? In-Reply-To: <50777D31.70707@hogranch.com> References: <50651F8A.1080704@hogranch.com> <50660523.5050503@hogranch.com> <50660A90.3020308@hogranch.com> <5069E7C8.4090004@hogranch.com> <5073DEED.8030504@hogranch.com> <507472B6.3060100@hogranch.com> <507474C0.1010304@hogranch.com> <50749A49.8060003@hogranch.com> <5075C351.1010101@hogranch.com> <5075C9D9.9080303@ejurka.com> <5075FE04.4020407@hogranch.com> <50775D08.9030409@hogranch.com> <5077662B.2000607@ejurka.com> <50776924.6080504@hogranch.com> <50777D31.70707@hogranch.com> Message-ID: <5078C807.5020502@hogranch.com> On 10/11/12 7:15 PM, John R Pierce wrote: > $ psql -c "SELECT > sqlj.install_jar('file:///opt/xxx/pljava/examples.jar', 'samples', > true);" > INFO: JVMJ9VM011W Unable to load jclscar_23: No such file or directory > ERROR: Failed to create Java VM and adding $JAVA_HOME/jre/bin/j9vm to the LIBPATH seems to have fixed this. error message was misleading, when I did an `ldd` on that libjclscar_32.so, it turned out the error was... $ ldd /usr/java5_64/jre/bin/libjclscar_23.so /usr/java5_64/jre/bin/libjclscar_23.so needs: ../lib/libc_r.a(shr_64.o) ../lib/libpthread.a(shr_xpg5_64.o) /usr/java5_64/jre/bin/libjsig.so /usr/java5_64/jre/bin/libj9zlib23.so /usr/java5_64/jre/bin/libj9thr23.so Cannot find libjvm.so /unix ../lib/libcrypt.a(shr_64.o) ../lib/libc.a(shr_64.o) and that libjvm.so is in $JAVA_HOME/jre/bin/j9vm and yes, after sorting this out, holycow, its working, and I think the test.jar passes all tests. phew, what a long strange trip THIS has been. -- john r pierce N 37, W 122 santa cruz ca mid-left coast