Installing Oracle java in linux
Open JDK comes with linux as default Java provider.In order to install Oracle java here are some step
- Download oracle java from here
- Select Java Platform (JDK)
- Accept License Agreement
- Download by Clicking on *-linux-x64.tar.gz( for 64 bit OS ) or *-linux-i586.tar.gz( for 32 bit OS )
- make a folder anywhere you want to keep java ( recommended on /opt) by using
sudo mkdir /opt/java - give full permission to this folder by
sudo chmod 777 -R /opt/java - unzip downloaded file on /opt/java
- open .bashrc for editing
- append following lines at the end of file and save it
export JAVA_HOME=/opt/java
PATH=$JAVA_HOME/bin:$PATH
10. Open terminal and type
source .bashrc
11. Open terminal and perform below command to make sure java is installed properly
java -version
if above command successfully executed ,congratulation java is installed.Otherwise please check above step properly.
0 comments:
Post a Comment