If /etc/profile.d/java.sh has the correct mode and uses the right java directory then it should work. Make sure you do log out and back in to pick up any change to java.sh.
Well I have done this and that is no problem but when I create a symbolic link for mozilla. mozilla just refuses to open.
-William Penton
What version of Mozilla, and what link did you create?
You need to link to the correct plugin for the version of Mozilla you've got. If the ns610 one doesn't work, try the ns610-gcc32 version.
-- Nigel Wade