Install Oracle JAVA JDK in your LINUX
Installing Oracle's JAVA JDK in your Linux takes a roundabout work if yours is not a Fedora based system. Here we are gonna see how we install Oracle JAVA JDK in your GNU LINUX.
For Ubuntu based Systems, click here
For Fedora based Systems, click here
For Ubuntu based Systems, click here
For Fedora based Systems, click here
Ubuntu based Systems :
Method 1 (Automatic Installation) :
In this method, we are going to use WebUPD8's PPA to install Oracle JAVA JDK in your Ubuntu. All you have to do is open the terminal and type the following :sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installerThats it. It will automatically download java JDK and install it for you.
Method 2 (Manual Installation) :
- Download the tar.gz package from here
- Extract the contents to Desktop. Now you'll have the folder named jdk1.x.x_xx.
- Rename it to java.
- Now open terminal and type gksu nautilus
- Now click on 'File System' in the left pane.
- Now go to 'home' -> 'your_username' -> 'Desktop'
- Right click on the extracted folder and select Copy
- Now click on 'File System'
- Go to 'usr' folder and Paste the 'java' folder
- Open the terminal and type the following :
- 'bash.bashrc' file will be opened in gedit. Go to the end of the file and type the following lines :
- Now open Terminal and type the following :
- javac
- If everything went correct, You will get something like this :
sudo -i cd /etc/ gedit bash.bashrc
export PATH=${PATH}:/usr/java/bin export JAVA_HOME=/usr/java/bin/java