I have installed Java 2 Runtime Environment version 1.4.2 on 2 systems and have met the same difficulties. I can get the Mozilla plugin to work easily, also I can install J2RE and use the GUI program when viewing java programs. However the problem that plagues me is installing other programs dependent on J2RE libraries (Java was installed in the directory /usr/java/j2re1.4.2_01 all the binaries and libraries are within just as they should be). For example, if I wanted to install Lime Wire for Linux (which requires J2RE) I will get a message stating that the installer cannot find my Java Virtual Machine. I have tried placing hard links to the 'java' and 'java_vm' binaries in the /usr/java/j2re1.4.2_01/bin/ directory from the directory where I would think the java installer would search for the binary, '/usr/bin/'. Once done I have had better results, the installer will extract its installation resources and configure itself for my system's environment, however once it begins to launch the installer program itself, an error occurs. It reports that the installer cannot find libjava.so and the Java 2 Runtime Environment. I later tried to place both a sym link and a hard link of libjava.so in both /usr/lib/ and /lib/ with no success and me out of ideas, I have given up for the time being.
I know that I am probably making a common mistake for early users to Linux, any suggestions would be highly appreciated.