Oracle Java JDK 19 is out! Here are the new features and how to install instructions for Ubuntu users.
First, for Linux users the release now ported to support the RV64GV configuration of RISC-V, a general-purpose 64-bit ISA.
The release also introduced record patterns to deconstruct record values. Record patterns and type patterns can be nested to enable a powerful, declarative, and composable form of data navigation and processing. Though it’s a preview feature so far.
There are also 2 other preview features: a foreign function & memory API can interoperate with code and data outside of the Java runtime; a lightweight virtual threads that dramatically reduce the effort of writing, maintaining, and observing high-throughput concurrent applications; pattern matching for switch expressions and statements.
JDK 19 also introduced an API to express vector computations that reliably compile at runtime to optimal vector instructions, and an API for structured concurrency.
Other changes include:
- New system properties for System.out and System.err.
- upgrade Unicode support to 14.0
- HTTPS channel binding support for Java GSS/Kerberos.
- Support for PAC-RET protection on Linux/AArch64
- Add a
-providerPathoption to jarsigner
- New options for ktab to provide Non-Default salt
- As well, there are removed and deprecated APIs and features. See release note details.
How to Install Java JDK 19 in Ubuntu Linux:
Oracle website provides the 64-bit DEB/RPM packages for Debian, Ubuntu, Fedora based systems. Just go download the package for your system from the link below:
In recent Linux systems, you can simply double-click on the package to install via system Software App. To set the Java home variable and use JDK 19 as default, see this step by step how to tutorial.