I just installed jdk-1.7, but it doesn't quite work. I have /usr/local/jdk-1.7.0/bin in my PATH. When I run java or javac, I get this:
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.
If I give the full path to the binary, it runs fine. libjava.so is located in /usr/local/jdk-1.7.0/jre/lib/i386/libjava.so. I tried adding it to the arguments sent to ldconfig, but all that happens is this:
$ sudo ldconfig /usr/X11R6/lib /usr/local/lib /usr/local/jdk-1.7.0/jre/lib/i386
$ ldconfig -r | grep jdk
search directories: /usr/lib:/usr/X11R6/lib:/usr/local/lib:/usr/local/jdk-1.7.0/jre/lib/i386
Anybody have better luck than me?