This is a very short post on what I ended up doing to get an OpenJDK 11 build for Raspbian on my Raspberry Pi 3.
- Get the latest JDK 11 build of the Liberica JVM (Debian package for ARM v7 & v8, provided by Bell Soft)
The java download page is here https://www.bell-sw.com/java.html.
- Install it
sudo apt-get install ./bellsoft-jdk11.0.2-linux-arm32-vfp-hflt.deb
- Set the defaults (if you want to)
sudo update-alternatives --config javac sudo update-alternatives --config java
Note that this gives you access to an open version of JDK Flight Recorder on your Raspberry Pi. Woho! 😉
You could, for example, use the flight recorder to record sensor information.
Another alternative would be using the Azul Zulu JVM, which also has a working Flight Recorder implementation in their JDK 11 arm32 builds.
So, there seems to be a problem with JFR on Liberica for now – the emitted recordings are unreadable by both the reference parser and the JMC one.
The issue with JFR you pointed out is fixed in the 11.0.2 Liberica JDK release.
This was caused by JDK-8217647. We are about to post an RFR to fix this upstream.
Excellent! I just tried out Liberica 11.0.2, and it seems to work well!
BTW, the fix is in the open since last September 🙂 (although it might be not that obvious since it’s part of larger review)
and specifically http://cr.openjdk.java.net/~apetushkov/aarch32jdk11%2b28/src/hotspot/share/jfr/recorder/repository/jfrChunkWriter.cpp.sdiff.html and http://cr.openjdk.java.net/~apetushkov/aarch32jdk11%2b28/src/hotspot/share/jfr/writers/jfrWriterHost.inline.hpp.sdiff.html
Thank you, really helpfull
It working on Deb Jessie Orange PI PC 2E