[Pljava-dev] pljava on AIX for postgres 9.1.x and IBM AIX Java 6?

From: pierce at hogranch(dot)com (John R Pierce)
To:
Subject: [Pljava-dev] pljava on AIX for postgres 9.1.x and IBM AIX Java 6?
Date: 2012-10-13 01:46:47
Message-ID: 5078C807.5020502@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

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

In response to

Browse pljava-dev by date

  From Date Subject
Next Message Hal Hildebrand 2012-10-13 16:19:45 [Pljava-dev] Installing PL/Java on Mac OS/X (Postgres 9, Mountain Lion)
Previous Message John R Pierce 2012-10-12 21:06:56 [Pljava-dev] pljava on AIX for postgres 9.1.x and IBM AIX Java 6?