c) set the java path
export JAVA_HOME=/usr/java/jdk1.8.0_45
d) Setup JRE_HOME Variable
export JRE_HOME=/usr/java/jdk1.8.0_45/jre
e) Setup PATH Variable
export PATH=$PATH:/usr/java/jdk1.8.0_45/bin:/usr/java/jdk1.8.0_45/jre/bin
environment variable :
/etc/environment
to set the variable permanently.
go to directory
/etc
open profile.
cmd : vi profile
set all the variable at the bottom of the pofile.
check from new command window weather you are able to see the path.
export JAVA_HOME=/usr/java/jdk1.8.0_45
d) Setup JRE_HOME Variable
export JRE_HOME=/usr/java/jdk1.8.0_45/jre
e) Setup PATH Variable
export PATH=$PATH:/usr/java/jdk1.8.0_45/bin:/usr/java/jdk1.8.0_45/jre/bin
environment variable :
/etc/environment
to set the variable permanently.
go to directory
/etc
open profile.
cmd : vi profile
set all the variable at the bottom of the pofile.
check from new command window weather you are able to see the path.
No comments:
Post a Comment