Saturday, November 27, 2010

add system variable on ubuntu10 startup

sudo gedit /etc/profile

Add the setting on the bottom of the file
for example:
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export MAVEN_HOME=/home/yao/springsource/maven-2.2.1.RELEASE
# export PATH=$MAVEN_HOME/bin;$PATH

No comments:

Post a Comment