Install Oracle Java JDK/JRE 7/8 in Ubuntu 13.10

Java is the foundation for virtually every type of networked application and is the global standard for developing and delivering mobile applications, games, Web-based content, and enterprise software. Currently there are no .deb packages available for Oracle Java 7/8.


Key Features

  • New rcache Types in Kerberos 5 Replay Caching
  • Support for Kerberos 5 Protocol Transition and Constrained Delegation
  • Kerberos 5 weak encryption types disabled by default
  • Unbound SASL for the GSS-API/Kerberos 5 mechanism
  • SASL service for multiple host names
  • JNI bridge to native JGSS on Mac OS X
  • Support for stronger strength ephemeral DH keys in the SunJSSE provider
  • Support for server-side cipher suites preference customization in JSSE
  • The new Modena theme has been implemented in this release. For more information, see the blog at
  • The new SwingNode class enables developers to embed Swing content into JavaFX applications. See the SwingNode javadoc and Embedding Swing Content in JavaFX Applications.
  • The new UI Controls include the DatePicker and the TreeTableView controls.

Install Oracle Java JDK

Step 1: Remove existing OpenJDK

sudo apt-get purge openjdk*

Step 2: Install Oracle Java

Java 7

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java7-installer

Java 8

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java8-installer

Step 3: Check Installed Version

java -version

[box type=”info” style=”rounded” icon=”info”]Note: the installer will prompt you to accept the Oracle license before the installation begins[/box]

Step 4: Set Java Environment Variable

Java 7

sudo apt-get install oracle-java7-set-default

Java 8

sudo apt-get install oracle-java8-set-default

[box type=”info” style=”rounded” icon=”info”]Note: previous versions of Oracle Java will be removed automatically when installing Oracle Java 8 while the environment variable will be set to Oracle Java 8[/box]

comments powered by Disqus