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
-- Nigel Wade