More precisely, I use --with-java-lib-dir=/usr/lib/gcj-4.1-71/ to build the Java module against gij/gcj 4.1 on Ubuntu.
Um, better make that /usr/lib/gcj-4.2-81/ instead. The current libgcj7.1 seems to have some problem preventing it from working well with Pike. (Or maybe there's something wrong with my installation?) libgcj8.1 works fine though:
chiyo:~/Pike/7.7% ldd build/linux-2.6.22-12-powerpc-ppc/modules/Java/module.so linux-vdso32.so.1 => (0x00100000) libdl.so.2 => /lib/libdl.so.2 (0x6ffa7000) librt.so.1 => /lib/librt.so.1 (0x6ff7e000) libnsl.so.1 => /lib/libnsl.so.1 (0x6ff44000) libm.so.6 => /lib/libm.so.6 (0x6fe7d000) libpthread.so.0 => /lib/libpthread.so.0 (0x6fe43000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x6fdf6000) libjvm.so => /usr/lib/gcj-4.2-81/./libjvm.so (0x6fdd3000) libc.so.6 => /lib/libc.so.6 (0x6fc56000) /lib/ld.so.1 (0x20000000) libgcj.so.81 => /usr/lib/libgcj.so.81 (0x6d7ab000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x6d776000) libz.so.1 => /usr/lib/libz.so.1 (0x6d740000) chiyo:~/Pike/7.7% make run_hilfe
Configure arguments: --with-java-lib-dir=/usr/lib/gcj-4.2-81 Use `make CONFIGUREARGS="..." ...' to change them. They will be retained in the build directory.
Making run_hilfe in build/linux-2.6.22-12-powerpc-ppc /home/marcus/Pike/7.7/build/linux-2.6.22-12-powerpc-ppc/pike -DNOT_INSTALLED -DPRECOMPILED_SEARCH_MORE -m/home/marcus/Pike/7.7/build/linux-2.6.22-12-powerpc-ppc/master.pike Pike v7.7 release 38 running Hilfe v3.5 (Incremental Pike Frontend)
(string)Java.pkg.java.lang.System->getProperty("java.vendor");
(1) Result: "Free Software Foundation, Inc."
(string)Java.pkg.java.lang.System->getProperty("java.version");
(2) Result: "1.5.0"