Bug 46359

GemBuilder for Java

3.1.3

All Platforms

Using a 64-bit Java with GBJ on 32-bit GS/S fails with UnsatisfiedLinkError

The GbjGci Library built for GS/S is 32-bit.  Attempting to run GBJ using a 64-bit Java will fail with the error:

java.lang.UnsatisfiedLinkError: $GEMSTONE/lib/libgbjgci313.so: ld.so.1: java: fatal: $GEMSTONE/lib/libgbjgci313.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)


Oracle no longer provides a 32-bit Java for Solaris as of version 1.8.  Because of this, GBJ will not run on 32-bit GS/S on Solaris (but see workaround).

Workaround

Use a 32-bit Java executable.

If you must run Java on Solaris (either x86 or SPARC), contact GemTalk Technical Support, which can generate a special version of GBJ using the older 1.7 version of the Java SDK.  You will need to run 32-bit Java version 1.7, which *is* available.


                

Last updated: 8/19/16