{"id":1116,"date":"2019-01-13T14:43:33","date_gmt":"2019-01-13T13:43:33","guid":{"rendered":"http:\/\/hirt.se\/blog\/?p=1116"},"modified":"2019-11-25T23:10:24","modified_gmt":"2019-11-25T22:10:24","slug":"jdk-11-on-the-raspberry-pi","status":"publish","type":"post","link":"https:\/\/hirt.se\/blog\/?p=1116","title":{"rendered":"JDK 11 on the Raspberry Pi"},"content":{"rendered":"\n<p>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.<\/p>\n<br>\n<ol>\n<li>Get the latest JDK 11 build of the Liberica JVM (Debian package for ARM v7 &amp; v8, provided by Bell Soft)<br>The java download page is here <a title=\"https:\/\/www.bell-sw.com\/java.html\" href=\"https:\/\/www.bell-sw.com\/java.html\">https:\/\/www.bell-sw.com\/java.html<\/a>.<br><br>For example:<br>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">wget https:\/\/github.com\/bell-sw\/Liberica\/releases\/download\/11.0.2\/bellsoft-jdk11.0.2-linux-arm32-vfp-hflt.deb<\/pre>\n<\/li>\n<li>Install it<br><br>For example:<br>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo apt-get install .\/bellsoft-jdk11.0.2-linux-arm32-vfp-hflt.deb<\/pre>\n<\/li>\n<li>Set the defaults (if you want to)<br>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo update-alternatives --config javac\nsudo update-alternatives --config java\n<\/pre>\n<\/li>\n<\/ol>\n<p>Done!<\/p>\n<p>Note that this gives you access to an open version of JDK Flight Recorder on your Raspberry Pi. Woho! \ud83d\ude09<\/p>\n<p>You could, for example, use the flight recorder to <a href=\"http:\/\/www.robo4j.io\/2017\/04\/robo4j-and-java-flight-recorder-laser.html\">record sensor information<\/a>.<\/p>\n<p>Another alternative would be using the Azul Zulu JVM, which also has a working Flight Recorder implementation in their JDK 11 arm32 builds.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &amp; v8, provided by Bell Soft)The java download page is here https:\/\/www.bell-sw.com\/java.html. For example: wget [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[29,12],"class_list":["post-1116","post","type-post","status-publish","format-standard","hentry","category-java-mission-control-fair-dj","tag-embedded","tag-java"],"_links":{"self":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1116"}],"version-history":[{"count":11,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1116\/revisions"}],"predecessor-version":[{"id":1146,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1116\/revisions\/1146"}],"wp:attachment":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}