Blog -> Bloglist
Install Oracle Java on Debian/Ubuntu 14.04 Linux
Step 1: Install Java 8 (JDK 8)
Add the webupd8team java PPA repository in your system and install Oracle java8 using following set of commands.$ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java8-installer
Step 2: Verify JAVA Version
Verify installed version using following command:$ java -versionjava version "1.8.0_20"
Step 3: Setup JAVA Environment
Set environment variables, Install this package using following command.$ sudo apt-get install oracle-java8-set-default
Note: If you found some dependencies errors on Ubuntu run this command
$ sudo apt-get install -f