The full version string for this update release is 16.0.2+7 (OpenJDK 16+7 baseline). The version number is 16.
Liberica JDK 16.0.2+7
Liberica is a certified, Java SE 16-compliant distribution of OpenJDK 16 which works on server (Linux x86_64, Linux ARM64, Solaris SPARC, Solaris x64, Windows 64), desktop (Windows 64, Windows 32, Mac, Linux x86_64), and embedded devices (Linux ARM64, Linux ARMv7, including Raspberry Pi 2, 3, 4 (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 16.
-
Linux ARMv7 distribution contains Device IO API compiled for Raspberry Pi.
Please refer to the Oracle JDK 16 release notes for further information on JDK 16 features. This document further outlines the peculiarities of Liberica distribution as compared to Oracle JDK 16 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 6.x, 7.x (x86, x86_64, ARMv7, ARMv8)
-
Alpine Linux 3.7+
-
SUSE Linux Enterprise 12, 15 and tumbleweed (x86_64, ARMv8)
-
Apple macOS 10.11+
-
Microsoft Windows 2019, Windows 2016, Windows 2012 R2, Windows 10, Windows 8, Windows 7 (64 and 32 bit)
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 16 distribution
Liberica JDK 16 are distributed as .rpm, .zip, .deb and .tar.gz packages. Please select the one which is most appropriate for your purposes.
Liberica 16 introduced all new features supported by OpenJDK 16.
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 16 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 16 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 16 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.
Security Baselines
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.
Known Issues
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
Issues fixed
Issue | Description |
---|---|
JDK-8023980 | JCE doesn’t provide any class to handle RSA private key in PKCS#1 |
JDK-8073446 | TimeZone getOffset API does not return a dst offset between years 2038-2137 |
JDK-8196415 | Disable SHA-1 Signed JARs |
JDK-8211227 | Inconsistent TLS protocol version in debug output |
JDK-8225081 | Remove Telia Company CA certificate expiring in April 2021 |
JDK-8241248 | NullPointerException in sun.security.ssl.HKDF.extract(HKDF.java:93) |
JDK-8256157 | Improve bytecode assembly |
JDK-8256491 | Better HTTP transport |
JDK-8257001 | Improve HTTP client support |
JDK-8258414 | OldObjectSample events too expensive |
JDK-8258432 | Improve file transfers |
JDK-8258457 | testlibrary_tests/ctw/JarDirTest.java fails with InvalidPathException on windows |
JDK-8258753 | StartTlsResponse.close() hangs due to synchronization issues |
JDK-8259627 | Potential memory leaks in JVMTI after JDK-8227745 |
JDK-8259662 | Don’t wrap SocketExceptions into SSLExceptions in SSLSocketImpl |
JDK-8260204 | Update the release version and release date after forking April CPU21_04 |
JDK-8260236 | better init AnnotationCollector _contended_group |
JDK-8260308 | Update LogCompilation junit to 4.13.1 |
JDK-8260401 | StackOverflowError on open WindowsPreferences |
JDK-8260453 | Improve Font Bounding |
JDK-8260960 | Signs of jarsigner signing |
JDK-8260967 | Better jar file validation |
JDK-8261183 | Follow on to Make lists of normal filenames |
JDK-8261262 | Kitchensink24HStress.java crashed with EXCEPTION_ACCESS_VIOLATION |
JDK-8261354 | SIGSEGV at MethodIteratorHost |
JDK-8261355 | No data buffering in SunPKCS11 Cipher encryption when the underlying mechanism has no padding |
JDK-8261505 | Test test/hotspot/jtreg/gc/parallel/TestDynShrinkHeap.java killed by Linux OOM Killer |
JDK-8261779 | JCK test api/javax_crypto/EncryptedPrivateKeyInfo/Ctor4.html is failing with assertion error when assertions enabled |
JDK-8261914 | IfNode::fold_compares_helper faces non-canonicalized bool when running JRuby JSON workload |
JDK-8261916 | gtest/GTestWrapper.java vmErrorTest.unimplemented1_vm_assert failed |
JDK-8262110 | DST starts from incorrect time in 2038 |
JDK-8262295 | C2: Out-of-Bounds Array Load from Clone Source |
JDK-8262365 | Update GStreamer to version 1.18.3 |
JDK-8262366 | Update glib to version 2.66.7 |
JDK-8262380 | Enhance XML processing passes |
JDK-8262403 | Enhanced data transfers |
JDK-8262410 | Enhanced rules for zones |
JDK-8262446 | DragAndDrop hangs on Windows |
JDK-8262477 | Enhance String Conclusions |
JDK-8262829 | Native crash in Win32PrintServiceLookup.getAllPrinterNames() |
JDK-8262844 | (fs) FileStore.supportsFileAttributeView might return false negative in case of ext3 |
JDK-8262899 | TestRedirectLinks fails |
JDK-8262967 | Improve Zip file support |
JDK-8263030 | Remove Shenandoah leftovers from ReferenceProcessor |
JDK-8263069 | Exclude some failing tests from security/infra/java/security/cert/CertPathValidator |
JDK-8263111 | Enhance String Conclusions |
JDK-8263136 | C4530 was reported from VS 2019 at access bridge |
JDK-8263311 | Watch registry changes for remote printers update instead of polling |
JDK-8263430 | Uninitialized Method* variables after JDK-8233913 |
JDK-8263557 | Possible NULL dereference in Arena::destruct_contents() |
JDK-8263558 | Possible NULL dereference in fast path arena free if ZapResourceArea is true |
JDK-8263564 | Consolidate POSIX code for runtime exit support: os::shutdown, os::abort and os::die |
JDK-8263587 | C2: JVMS not cloned when needs_clone_jvms() is true |
JDK-8263968 | CDS: java/lang/ModuleLayer.EMPTY_LAYER should be singleton |
JDK-8264047 | Duplicate global variable ‘jvm’ in libjavajpeg and libawt |
JDK-8264066 | Enhance compiler validation |
JDK-8264079 | Improve abstractions |
JDK-8264374 | Shenandoah: Remove leftover parallel reference processing argument |
JDK-8264460 | Improve NTLM support |
JDK-8264786 | [macos] All Swing/AWT apps cause Allow Notifications prompt to appear when app is launched |
JDK-8265201 | JarFile.getInputStream not validating invalid signed jars |
JDK-8265204 | Update the milestone for JDK16.0.2 |
JDK-8265239 | Shenandoah: Shenandoah heap region count could be off by 1 |
JDK-8265531 | doc/building.md should mention homebrew install freetype |
JDK-8265666 | Enable AIX build platform to make external debug symbols |
JDK-8266205 | Update milestone to fcs for jdk16.0.2+4 |
JDK-8266288 | assert root method not found in witnessed_reabstraction_in_supers is too strong |
JDK-8266802 | Shenandoah: Round up region size to page size unconditionally |
JDK-8267100 | [BACKOUT] JDK-8196415 Disable SHA-1 Signed JARs |
JDK-8267117 | sun/hotspot/whitebox/CPUInfoTest.java fails on Ice Lake |
JDK-8267235 | [macos_aarch64] InterpreterRuntime::throw_pending_exception messing up LR results in crash |
JDK-8267345 | VM crashes during dumping classlist with -Xshare:dump option |
JDK-8267773 | PhaseStringOpts::int_stringSize doesn’t handle min_jint correctly |
JDK-8267842 | SIGSEGV in get_current_contended_monitor |
JDK-8268173 | Wrong GA date in JDK 11.0.12 and 16.0.2 versions |