In the last episode (Jun 15), David Gourdelier said:
gcc did; the runtime linker couldn't. They why the compile worked but ./conftest failed. On Solaris, the java libraries have an embedded $ORIGIN in the rpath so they know where their dependencies are. Tru64 puts symlinks to the java libs in /usr/shlib. AIX's java libs don't seem to have dependencies. On FreeBSD and Debian, it looks like there is a java wrapper script that sets LD_LIBRARY_PATH dynamically, depending on which jvm you want to run.
So what would you suggest for this problem ? Setting LD_LIBRARY_PATH manually?
Until I can find some other java-using program that does otherwise as a counterexample, yeah. The mozilla plugin doesn't count since it only links to libjvm.so (pike apparently needs libzip.so also)