{"id":150,"date":"2016-09-29T11:35:17","date_gmt":"2016-09-29T11:35:17","guid":{"rendered":"https:\/\/xmoexdev.com\/wordpress\/?p=150"},"modified":"2018-05-02T17:38:26","modified_gmt":"2018-05-02T17:38:26","slug":"installing-openjdk-8-debian-jessie","status":"publish","type":"post","link":"https:\/\/xmoexdev.com\/wordpress\/installing-openjdk-8-debian-jessie\/","title":{"rendered":"Installing OpenJDK 8 on Debian Jessie"},"content":{"rendered":"<p class=\"info\">Be aware that this tutorial was written for Debian Jessie. If you are using Debian Stretch (or Ubuntu Xenial Xeres \/ Bionic Beaver) you can just install OpenJDK version 8 right away or <a href=\"\/\/xmoexdev.com\/wordpress\/installing-openjdk-9-debian-stretch\/\">learn how to install OpenJDK 9<\/a><\/p>\n<p>Since <strong>OpenJDK 8<\/strong> is out there <a href=\"\/\/download.java.net\/openjdk\/jdk8\/\" title=\"Java download site\">since march 2014<\/a> I wanted to install it on my freshly setup Debian Jessie. But trying to, I was surprised that the OpenJDK is only available in version 7. To successfully install version 8 you need to perform the <!--more following steps.-->following steps:<\/p>\n<h2>Prepare your system<\/h2>\n<p>The desired version of OpenJDK is not available in out-of-the-box Debian Jessie. So you have to rely on <a href=\"\/\/backports.debian.org\/\" title=\"Debain Backports project page\">Debian Backports repository<\/a> and add the following lines to the end of your <em>\/etc\/apt\/sources.list<\/em> file:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\"># jessie backports\r\ndeb http:\/\/http.debian.net\/debian jessie-backports main<\/pre>\n<h2>Install OpenJDK 8<\/h2>\n<p>The installation of version 8 is then straight forward:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo apt-get update\r\nsudo apt-get install -t jessie-backports openjdk-8-jdk<\/pre>\n<h2>Make version 8 your default Java<\/h2>\n<p>This step is optional. Debian provides a neat Tool to change default Java on your system.<\/p>\n<ol>\n<li>To check which JDK-Versions are available on your system perform:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo update-java-alternatives --list<\/pre>\n<p>On my system (64-bit) the output is:<\/p>\n<pre>java-1.7.0-openjdk-amd64 1071 \/usr\/lib\/jvm\/java-1.7.0-openjdk-amd64\r\njava-1.8.0-openjdk-amd64 1069 \/usr\/lib\/jvm\/java-1.8.0-openjdk-amd64<\/pre>\n<\/li>\n<li>To update your all relevant symlinks at once use:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo update-java-alternatives --set java-1.8.0-openjdk-amd64<\/pre>\n<p>(in a 32-bit environment use -i386 postfix instead of -amd64)\n<\/li>\n<\/ol>\n<p>You can ignore the errors about to a missing java plugin as you probably just did not install the java browser plugin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Be aware that this tutorial was written for Debian Jessie. If you are using Debian Stretch (or Ubuntu Xenial Xeres \/ Bionic Beaver) you can just install OpenJDK version 8 right away or learn how to install OpenJDK 9 Since OpenJDK 8 is out there since march 2014 I wanted to install it on my &hellip; <a href=\"https:\/\/xmoexdev.com\/wordpress\/installing-openjdk-8-debian-jessie\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Installing OpenJDK 8 on Debian Jessie&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":163,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[3,26,2,27],"class_list":["post-150","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial","tag-debian","tag-java","tag-linux","tag-openjdk"],"_links":{"self":[{"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":33,"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"predecessor-version":[{"id":293,"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/posts\/150\/revisions\/293"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/media\/163"}],"wp:attachment":[{"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xmoexdev.com\/wordpress\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}