Wednesday 5 December 2018

How to install Oracle Java 11 long-term support on Ubuntu

   Java 11 has arrived. The new release is the first planned appearance of Oracle's long-term support (LTS) releases, although Oracle has also grandfathered in Java 8 as an LTS release to help bridge the gap between the old release model and the new approach



Java 11 Changelog
  • Standardize the incubated HTTP Client API introduced in JDK 9, via JEP 110, and updated in JDK 10
  • New Collection.toArray(IntFunction) Default Method
  • The locale data based on the Unicode Consortium's CLDR (Common Locale Data Registry) has been updated for JDK 11.
  • Lazy Allocation of Compiler Threads
  • ZGC (Experimental): a brand-new garbage collector designed for sub-10ms pause times (even on large heaps) with an aim of no more than a 15% performance penalty.
  • Epsilon GC is the new experimental no-op garbage collector. Epsilon GC only handles memory allocation, and does not implement any memory reclamation mechanism. It is useful for performance testing, to contrast costs/benefits of other GCs.
  • Low-Overhead Heap Profiling
  • Nest-Based Access Control
  • JEP 324 adds an implementation of a new key agreement scheme using Curve25519 and Curve448 as described in RFC 7748.
  • The SunEC provider has been enhanced to support 4 additional Brainpool curves as defined in RFC 5639, Elliptic Curve Cryptography (ECC) Brainpool Standard Curves and Curve Generation.
  • JEP 329 ChaCha20 and Poly1305 Cryptographic Algorithms
  • See announcement for full details

Installation instructions:

Open terminal from Unity Dash, App Launcher, or via Ctrl+Alt+T keys. When it opens, run below commands one by one:
 

$ sudo add-apt-repository ppa:linuxuprising/java

$ sudo apt-get update

$ sudo apt-get install oracle-java11-installer

Before getting started, you must accept the license (press Tab to highlight OK and hit Enter).


 You must accept the license (press Tab to highlight Yes and hit Enter).


 To set Oracle Java 11 by default, do:


$ sudo apt-get install oracle-java11-set-default
 
Check Installed Version
  
java -version

Option, remove Java 11:


$ sudo apt-get remove oracle-java11-installer


Harry

Author & Editor

A technology enthusiast and addictive blogger who likes to hacking tricks and wish to be the best White Hacket Hacker of the World.

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.