Hi java & ADF fellas,
today i'm writing a post to how to install Java 8 and JRE 8 in linux.
1. Fisrt download it from oracle web-site
JDK 8 & JRE 8
2. Extract them to a specified folder.
ex:- myApps in home
today i'm writing a post to how to install Java 8 and JRE 8 in linux.
1. Fisrt download it from oracle web-site
JDK 8 & JRE 8
2. Extract them to a specified folder.
ex:- myApps in home
3. open terminal and type the code gedit .bashrc
4. go to the end of the file and make two variables.
a.) JAVA_HOME b.) JRE_HOME.
5. and provide them the exact location of the files in the directory structure
as depicted in the figure.
6. Append it to the path, i.e. the exixting path.
just copy and paste the following code to .bashrc
PATH=.:$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export PATH
export PATH
7. Reload the file.
source .bashrc
8. check the version of java and jre version.
javac -verion
java -version
thank you :)