I got to setup the following two variables:
export LD_LIBRARY_PATH=/usr/java/jdk1.6.0/jre/lib/i386/:/usr/java/jdk1.6.0/jre/lib/i386/client/:./ export JAVA_HOME=/usr/java/jdk1.6.0/
Since, the above is for the version of JDK installed via SunJDK, what could be the equivalent path for the openjdk-6-jdk package?
My OpenJDK is installed at:
/usr/lib/jvm/java-6-openjdk
I couldn’t find the folder i386/, though. To which path should I point?
The
open-jdkpackage itself does is not distributed with any shared objects/libraries (.sofiles) on Hardy, althoughopen-jredoes.Normally you need not set
LD_LIBRARY_PATHmanually, as thejavabinaries should automatically seek any standardopen-jrelibraries at their well-known locations. If, however, you are encountering issues with library dependencies (see how to use thelddcommand to identify such unmet dependencies, below), you may need to pointLD_LIBRARY_PATHto either/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/(IIRC Slicehost’s architecture is AMD 64bit) or/usr/lib/jvm/java-6-openjdk/jre/lib/i386/.Also export
JAVA_HOMEas/usr/lib/jvm/java-6-openjdkYou may confirm that
javasatisfies all shared objects/libraries dependencies by running:For a complete list of the files distributed as part of
open-jdkandopen-jre, see the open-jdk (amd64) file list and the open-jre (amd64) file list, or run:…on your system.