The full version string for this update release is 18.0.1+12. The version number is 18.
Liberica JDK 18.0.1+12
Liberica is a certified, Java SE 18-compliant distribution of OpenJDK 18 which works on server (Linux x86_64, Linux ARM64, Windows 64), desktop (Windows 64, Windows 32, Mac, Linux x86_64), and embedded devices (Linux ARM64, Linux ARMv7, including Raspberry Pi 2 & 3 (ARMv6 hardfloat)). It has the following notable additions:
- Linux x86_64 version contains experimental support for ZGC.
- Linux x86_64, ARMv8 and ARMv7 distributions include a choice of Client VM, Server VM and Minimal VM.
- Alpine Linux x86_64 version is build with musl support.
- Windows x86_64, Windows x86, Windows ARMv8, Mac, Linux x86_64, Linux x86 and Linux ARMv7 distributions contain OpenJFX 18.
- Linux ARMv7 distribution contains Device IO API compiled for Raspberry Pi.
Please refer to the Oracle JDK 18.0.1 release notes for further information on JDK 18 features. This document further outlines the peculiarities of Liberica distribution as compared to Oracle JDK 18 distribution.
Supported Server and Desktop configurations
Liberica is supported on the following OSes:
- Ubuntu Linux 16.04, 18.04, 20.04 (x86, x86_64, ARMv7, ARMv8)
- Debian Linux 8, 9, 10 (x86, x86_64, ARMv7, ARMv8)
- Red Hat, Oracle Linux and CentOS 8x, 6.x, 7.x (x86, x86_64, ARMv7, ARMv8)
- Alpine Linux 3.7+ (x86_64, ARMv8)
- SUSE Linux Enterprise 12, 15 and tumbleweed (x86_64, ARMv8)
- Apple macOS 10.11+ (x86_64, ARMv8)
- Microsoft Windows 2019, Windows 2016, Windows 2012 R2, Windows 10, Windows 8, Windows 7 (x86, x86_64, ARMv8)
It is also known to work on other Linux distributions and Windows versions.
Note: The minimum supported Linux kernel version is 2.6.18 and GLIBC version 2.6. LibericaFX works on all supported Ubuntu versions, Red Hat Linux family starting from 7.x and SUSE versions with GTK3 backend.
Supported Embedded configurations
Liberica is tested and certified on Raspberry Pi 2, 3 and 4 running the following OSes:
- Raspbian OS (armhf)
- OpenSUSE (armv8)
It is also known to work with Debian (armhf) and Ubuntu (armhf).
Liberica JDK 18 distribution
Liberica JDK 18 are distributed as .rpm, .zip, .deb and .tar.gz packages. Please select the one which is most appropriate for your purposes.
Liberica JDK 18 introduced all new features supported by OpenJDK 18.
With the introduction of the Jigsaw feature in JDK 9 and Minimal VM it is now possible to create a Runtime that is sufficient to run your application and trim down the size of the Runtime. To generate a Runtime with just the Minimal VM, add --vm=minimal to jlink options.
Liberica JDK continues to provide support for AOT and Graal JIT. Since in OpenJDK 18 builds these features are deemed experimental and deprecated, it is recommended to compile native executables with Liberica Native Image Kit to avoid errors.
By default, the Liberica uses Server VM. Server VM and Client VM can be enabled with -server and -client command line options, respectively. In case the deployment requires to minimize the footprint, it may be beneficial to use Minimal VM, which emphasises on a minimal footprint. It has C1 JIT compiler only, Serial GC and no serviceability features.
LibericaFX for the Raspberry Pi
Liberica JDK 18 come with a bundled LibericaFX implementation, which is based on OpenJFX. The following tables lists Java FX modules status of Liberica distribution
- Java FX Graphics - works.
- Java FX Controls - works.
- Java FX Media - does not work.
- Java FX Webkit - does not work.
The following pipelines are known to work: EGL, SW (direct framebuffer) and GTK. By default, Liberica tries to use the accelerated EGL pipeline, which requires the presence of EGL libraries. If they are not found, the implementation falls back to software rendering.
Use the following command line options to specify the rendering pipeline:
- -Dprism.order=sw forces the use of software rendering pipeline. *
- -Dprism.order=es2 forces the use of EGL pipeline and hardware acceleration. *
- -Djavafx.platform=gtk if you would like to launch a LibericaFX application using Liberica from X11.
* Not supported on Raspberry Pi 4.
Please refer to the following wiki for more information.
Device IO API for the Raspberry Pi
Liberica JDK 18 comes with a bundled OpenJDK Device I/O (DIO) API implementation module. DIO provides a Java API for accessing Raspberry PI GPIO pins and for communicating with peripheral devices:
- General Purpose Input/Output (GPIO).
- Inter-Integrated Circuit Bus (I2C), Serial Peripheral Interface (SPI).
- Universal Asynchronous Receiver/Transmitter (UART).
Please refer to the following wiki for more information.
BellSoft Liberica follows the security baselines for Oracle Java SE. Please refer to the Oracle documentation for a list of issues fixed in a given release.
LibericaFX and EGL on Raspbian
As of 2017, the default location of Broadcom libEGL.so and libGLESv2.so has changed in Raspbian OS. If you'd like to leverage hardware EGL acceleration available from Broadcom video drivers in LibericaFX while running a recent Raspbian OS, run the following command:
cd /opt/vc/lib sudo ln -s libbrcmEGL.so libEGL.so sudo ln -s libbrcmGLESv2.so libGLESv2.so
|8282099||Cherry-pick WebKit 613.1 stabilization fixes (2)|
|8281711||Cherry-pick WebKit 613.1 stabilization fixes|
|8281459||WebKit 613.1 build broken on M1|
|8278980||Update WebKit to 613.1|
|8284920||Incorrect Token type causes XPath expression to return empty result|
|8284548||Unexpected StringIndexOutOfBoundsException can occur for invalid XPath expressions after JDK-8270504|
|8282397||createTempFile method of java.io.File is failing when called with suffix of spaces character|
|8282300||Throws NamingException instead of InvalidNameException after JDK-8278972|
|8281388||Change wrapping of EncryptedPrivateKeyInfo|
|8278972||Improve URL supports|
|8278805||Enhance BMP image loading|
|8278798||Improve supported intrinsic|
|8278449||Improve keychain support|
|8278356||Improve file creation|
|8277672||Better invocation handler handling|
|8277233||Improve ECDSA signature support|
|8277227||Better identification of OIDs|
|8275151||Improved Object Identification|
|8274221||More definite BER encodings|
|8272594||Better record of recordings|
|8272588||Enhanced recording parsing|
|8272261||Improve JFR recording file processing|
|8272255||Completely handle MIDI files|
|8270504||Better Xpath expression handling|
|8269938||Enhance XML processing passes redux|
|8281093||Violating Attribute-Value Normalization in the XML specification 1.0|
|8276990||Memory leak in invoker.c fillInvokeRequest() during JDI operations|
|8278186||org.jcp.xml.dsig.internal.dom.Utils.parseIdFromSameDocumentURI throws StringIndexOutOfBoundsException when calling substring method|
|8272996||JNDI DNS provider fails to resolve SRV entries when IPV6 stack is enabled|
|8277488||Add expiry exception for Digicert (geotrustglobalca) expiring in May 2022|
|8276819||javax/print/PrintServiceLookup/FlushCustomClassLoader.java fails to free|
|8281275||Upgrading from 8 to 11 no longer accepts '/' as filepath separator in gc paths|
|8281262||Windows builds in different directories are not fully reproducible|
|8281183||RandomGenerator:NextDouble() default behavior partially fixed by JDK-8280950|
|8280950||RandomGenerator:NextDouble() default behavior non conformant after JDK-8280550 fix|
|8280550||SplittableRandom#nextDouble(double,double) can return result >= bound|
|8277795||ldap connection timeout not honoured under contention|
|8278851||Correct signer logic for jars signed with multiple digestalgs|
|8280414||Memory leak in DefaultProxySelector|
|8280123||C2: Infinite loop in CMoveINode::Ideal during IGVN|
|8258814||Compilation logging crashes for thread suspension / debugging tests|
|8279412||[JVMCI] failed speculations list must outlive any nmethod that refers to it|
|8273139||C2: assert(f <= 1 && f >= 0) failed: Incorrect frequency|
|8279225||[arm32] C1 longs comparison operation destroys argument registers|
|8279437||[JVMCI] exception in HotSpotJVMCIRuntime.translate can exit the VM|
|8280910||Update openjdk project in jcheck to "jdk-updates" for jdk18u|
|8280526||x86_32 Math.sqrt performance regression with -XX:UseSSE=|
|8279445||Update JMH devkit to 1.34|
|8278472||Invalid value set to CANDIDATEFORM structure|
|8274751||Drag And Drop hangs on Windows|
|8267341||macos attempt_reserve_memory_at(arg1, arg2, true) failure|
|8279223||Define version in .jcheck/conf|
|8278384||Bytecodes::result_type() for arraylength returns T_VOID instead of T_INT|
|8278869||Bump version numbers for OPENJDK 18.0.1|