I'm not an expert, and may not clearly understand the problem. I'm not sure what 'saving java.sh in profile.d' is supposed to accomplish.
On the other hand, I know that the most common reason for Java not to work is that it's directory is not in the user's $PATH. If you used the .rpm to install Java, that directory will be /usr/java/
|