Solaris 9 environment variables

chris.tkd

n00b
Joined
Jun 14, 2008
Messages
17
Hi, Im having some trouble setting environement variables in solaris 9.

Im using tcsh, when i log in some environment variables are already set, such as JAVA_HOME. I created a new JAVA_HOME inside .tcshrc, when i restart the session the new JAVA_HOME is picked up but the path has a = after it, the problem is that its just created a new JAVA_HOME env var instead of replacing the old one, when i echo $JAVA_HOME the path to the old JAVA_HOME is printed.

Any ideas on how to fix this?
 
I found out what the problem was,

in my .tcshrc i was doing
setenv JAVA_HOME=/home/...... etc

The problem was the = sign, it should have been

setenv JAVA_HOME /home/...... etc
 
Back
Top