vi ~/.bashrc export JAVA_HOME=/usr/ export PATH=$JAVA_HOME/bin:$PATH source ~/.bashrc