{"id":1997,"date":"2017-02-04T00:16:39","date_gmt":"2017-02-04T00:16:39","guid":{"rendered":"http:\/\/blog.paranoidprofessor.com\/?p=1997"},"modified":"2017-02-07T23:34:19","modified_gmt":"2017-02-07T23:34:19","slug":"installing-java-8-on-linux","status":"publish","type":"post","link":"https:\/\/blog.paranoidprofessor.com\/index.php\/2017\/02\/04\/installing-java-8-on-linux\/","title":{"rendered":"Installing Java 8 on Linux"},"content":{"rendered":"<p>I hate to admit it but for some tasks on Linux are\u00a0easier for some less technical people on other operating systems like windows.\u00a0Simply run the executable which, most of the time, prompts for the install path and then proceeds to install to your hard disk.<\/p>\n<p>Each version of Linux is a bit different so the the actual howto&#8217;s for installing software may differ slightly. \u00a0I wanted to create a small development so I took\u00a0the new linux mint 18.1 version for a spin. \u00a0I rolled a virtual machine so I could do some testing.<\/p>\n<p>The steps for installing the official Java is actually not much more complex than the following.<\/p>\n<ul>\n<li>make sure your computer is up to date<\/li>\n<li>uninstall existing open JDK\u00a0Java<\/li>\n<li><a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html\">download official version of Java<\/a><\/li>\n<li>unpack Java<\/li>\n<li>copy or move to its installed location<\/li>\n<li>make this version the default<\/li>\n<\/ul>\n<p>I simply looked all of this up at the mint site.<\/p>\n<p><a href=\"https:\/\/community.linuxmint.com\/tutorial\/view\/1372\">https:\/\/community.linuxmint.com\/tutorial\/view\/1372<\/a><\/p>\n<p>My final step is no different than from the tutorial but you do need to do this for each program that you wish to use. \u00a0This is the small script that I used to set the both the java and javac program as default using this version.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsudo update-alternatives --install &quot;\/usr\/bin\/java&quot; &quot;java&quot; &quot;\/opt\/java\/jdk1.8.0_121\/bin\/java&quot; 1\r\nsudo update-alternatives --set java \/opt\/java\/jdk1.8.0_121\/bin\/java\r\n\r\nsudo update-alternatives --install &quot;\/usr\/bin\/javac&quot; &quot;javac&quot; &quot;\/opt\/java\/jdk1.8.0_121\/bin\/javac&quot; 1\r\nsudo update-alternatives --set javac \/opt\/java\/jdk1.8.0_121\/bin\/javac\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I hate to admit it but for some tasks on Linux are\u00a0easier for some less technical people on other operating systems like windows.\u00a0Simply run the executable which, most of the time, prompts for the install path and then proceeds to &hellip; <a href=\"https:\/\/blog.paranoidprofessor.com\/index.php\/2017\/02\/04\/installing-java-8-on-linux\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,3],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/1997"}],"collection":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/comments?post=1997"}],"version-history":[{"count":4,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/1997\/revisions"}],"predecessor-version":[{"id":2026,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/1997\/revisions\/2026"}],"wp:attachment":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/media?parent=1997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/categories?post=1997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/tags?post=1997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}