Make sure that and where the jre is installed.
Has it been installed using the RPM, type
rpm -qa | grep -i jre
If something like "java2-jre-1.4.2" shows up, it is installed.
Now, ask the PRM database for the location the JRE files have been
installed to: rpm -ql java2-jre | more
You should find a subdirectory named "jre/bin" somewhere in the output.
Usually, a link "/usr/lib/java" is created during installation of the os and/or
java jre and points to the "right" directory.
If you installed by tar.gz package, use the "find" command to locate the packages installation location:
find /opt /usr -name "jre" -type d
Now when we are that an jre is installed, we check for a sufficient search path.
Log on as a simple "user" - avoid using the "root" account whenever possible. Type in
echo $PATH | grep java
You should find something like ":/usr/lib/java/jre/bin:" in the output. If, you should then try to call "java -version" and see output like this:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
If not, consider to download the Sun JRE RPM from http://java.sun.com/j2se/1.4.2/download.html.
(Locate the string "Download J2SE v 1.4.2_03" and click at the link "download" below the word "JRE". Read and accept the license agreement. Select "RPM in self-extracting file" for download.
Install that file as user "root"!