Sunday, October 27, 2019

How to install Oracle Java 13 on Ubuntu 18.04, 16.04, 19.04, 19.10

Oracle will provide Java 13 as the Oracle OpenJDK release using the open source GNU General Public License v2, with the Classpath Exception (GPLv2+CPE), and also under a commercial license for those using the Oracle JDK release as part of an Oracle product or service, or who do not wish to use open source software.





Java 13 Changelog

Five enhancements are delivered with Java 13, inclusive of two preview features:

JEP 350 – Dynamic CDS Archives: Extends application class-data sharing to allow the dynamic archiving of classes at the end of Java application execution. The archived classes will include all loaded application classes and library classes that are not present in the default, base-layer CDS archive.

JEP 351 – ZGC: Uncommit Unused Memory: Enhances the z garbage collector to return unused heap memory to the operating system.

JEP 353 – Reimplement the Legacy Socket API:  Replaces the underlying implementation used by the java.net.Socket and java.net.ServerSocket APIs with a simpler and more modern implementation that is easy to maintain and debug. The new implementation will be easy to adapt to work with user-mode threads, a.k.a. fibers, currently being explored in Project Loom.

JEP 354 – Switch Expressions (Preview): Extends switch so it can be used as either a statement or an expression, which will simplify everyday coding, and prepare the way for the use of pattern matching (JEP 305) in switch.

JEP 355 – Text Blocks (Preview): Adds text blocks to the Java language, which will simplify the task of writing Java programs by making it easy to express strings that span several lines of source code, while avoiding escape sequences in common cases; enhance the readability of strings in Java programs that denote code written in non-Java languages; as well as support migration from string literals by stipulating that any new construct can express the same set of strings as a string literal, and interpret the same escape sequences, and be manipulated like a string literal.

Java continues to be the #1 programming language of choice by software programmers.  And as the on-time delivery of improvements with Java 13 demonstrates, through continued thoughtful planning and ecosystem involvement, the Java platform is well-positioned for modern development and growth in the cloud.

 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-java13-installer

To set Oracle Java 13 by default, do:

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




  Option, remove Java 13:

$ sudo apt-get remove oracle-java13-installer

 

7 comments:

  1. Do you encounter difficulties in withdrawing funds in Gemini exchange? Are you seeking the accessible solution and handy solutions to deal with this error? If yes, step into the doors of the customer care team of experts who are always there to guide you and help you in eradicating the errors completely from the roots with the blend of their many years’ experience experts and sheer knowledge. Just dial Gemini support number 1-833-993-0690 and get instant resolutions in no time from the team.
    Gemini Support Number
    Gemini Customer Support
    Gemini Phone Number
    Gemini Customer Service
    Gemini Toll Free Number

    ReplyDelete
  2. Password plays a role of mediator who 18778462817 guides you the road of your Binance account. If you are dealing with password issues and looking for assistance, you can always call on Binance customer service number which is functional all the time for assistance. You can contact with the team anytime and avail results that are easy to execute. Connecting with the team anytime to avail results that are easy to Binance Customer Service Number execute and beneficial for users who are looking for solutions to deal with queries. Connecting the team is a right decision, therefore, contact the team whenever you need them most and get rid of all troubles immediately from the roots.

    ReplyDelete
  3. You share such a amazing information about Java programing in this article its really useful and intersting. Keep it up. Now it's time to avail water bottle for more information.

    ReplyDelete
  4. I am very happy to read this blog post. This article helpful for the programmers. Because the style you explained about java and programing it's amazing. Thanks for sharing it. Now it's time to avail Limo Service Bay Area for more information.

    ReplyDelete
  5. Jaypee India Ltd makes strong and easy-to-use bar cutting machine. These machines cut steel bars fast and with safety. They are perfect for building work and saving time. Jaypee India is trusted to make good-quality machines for all your bar cutting needs.

    ReplyDelete