On tcsh, variables are set like this:
Code:
set JAVA_HOME=/path/to/java
So place that someplace before you attempt to use ${JAVA_HOME}
Here is how I set my paths in .cshrc:
Code:
set path = ($path $HOME/bin /opt/jdk/1.8/${JAVA_HOME})
I am pretty sure you have the wrong path in your example. I could be wrong, but I've never seen a system set up with home/usr/usc/blah before. You probably mean /usr/home/usc/blah
You are also re-defining PATH three times. You don't really mean to do that. THis is more like what I imagine you want:
Code:
set JAVA_HOME=/path/to/java
set ANT_HOME=/path/to/ant
set path = ($path $HOME/bin /usr/home/usc/jdk/1.7.0_65/${JAVA_HOME} ${ANT_HOME}/auto/rcf-proj/sa1/software)
You may want to see if you have BASH installed. In my opinion, it has a lot of really nice features that make the shell a much more fun place to be, and most Linux tutorials are written with it in mind. Nothing against TCSH (I use it at work daily) but BASH is kinda nice!