I was told that a good thing to do is to create a .sh and .csh file in /etc/profile.d. The .sh file should have these two lines in them:
export JDK_HOME=<path to your jdk implementation — mine is /usr/java/j2sdk1.4.1_01> export PATH=$PATH:$JDK_HOME/bin
My guess at what the .csh file should look like is this:
setenv JDK_HOME=<path to your ...