Write the below line in /etc/bash.bashrc
// user jdk path
JAVA_HOME=/home/test/java/jdk1.6.0_30
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH
PATH=$PATH:JAVA_HOME
//user maven path (expecting extract in /usr/local/apache-maven/)
M2_HOME=/usr/local/apache-maven/apache-maven-3.0.4
export M2_HOME
M2=$M2_HOME/bin
export PATH=$M2:$PATH
No comments:
Post a Comment