Bigdata

Installing Sun Java in Ubuntu 14.04


Ubuntu comes with Open java and jdk but most of the time application developments demands for sun java.

Steps to install Sun Java in Ubuntu 14.04

1. Initial commands to execute

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

2. For Oracle JDK 6

sudo apt-get install oracle-java6-installer

3. For Oracle JDK 7

sudo apt-get install oracle-java7-installer

4. For Oracle JDK 8

sudo apt-get install oracle-java8-installer

5. Setting JAVA_HOME
Copy the path where preferred JDK is installed and edit /etc/environment file

sudo nano /etc/environment
JAVA_HOME="YOUR_PATH"

6.Reload the file

source /etc/environment
Standard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s