0

Please tell me why I can't set my env var by modifying ~/.profile?

[104] whoami
user

[105]% cat .profile
. /app/share/Profile
# add any personal customizations after this line
set JAVA_HOME="/usr/java/jdk1.6.0_17"

[106]% ~/.profile
user out

[107]% echo $JAVA_HOME
JAVA_HOME: Undefined variable.
MadHatter
  • 79,770
  • 20
  • 184
  • 232
Kevin Meredith
  • 1,269
  • 2
  • 15
  • 21

1 Answers1

0

I had to modify ~/.cshrc.

[me$]% cat ~/.cshrc
setenv MAVEN_HOME /home/bin/apache-maven-2.2.1/bin
Kevin Meredith
  • 1,269
  • 2
  • 15
  • 21