The esiest way to do this is to create a text file in your /etc/profile.d directory and call it something like java_path.sh.
In the file enter in this string:
export PATH=$PATH:/usr/java/j2re_1.4.2/bin
Make surre that the /usr/java/....part points to your bin directory wherever you installed your java.
Save the file. Log out and log back in. at a command type "java -version" if everything went well it should be good to go.
curtis@facelifted.com