Hi again,
the problem is that our script was built for Fedora Core 3 and has not been tested on RHEL 4. We'll try to fix that for the next version.
in the meantime, here are instructions how to install Sun java (written for java 1.4.2 but should work for 1.5 as well):
http://www.fedoranews.org/tchung/sunjava/