{"id":479,"date":"2014-03-15T22:39:14","date_gmt":"2014-03-16T03:39:14","guid":{"rendered":"http:\/\/tiemensfamily.com\/TimOnCS\/?p=479"},"modified":"2014-03-15T22:39:14","modified_gmt":"2014-03-16T03:39:14","slug":"oracle-adds-license-to-java7-installer-fails","status":"publish","type":"post","link":"https:\/\/tiemensfamily.com\/timoncs\/2014\/03\/15\/oracle-adds-license-to-java7-installer-fails\/","title":{"rendered":"Oracle Adds License to oracle-java7-installer and Now It Fails"},"content":{"rendered":"<p>For automatic provisioning that installs the official Oracle Java package, many paths lead to <a href=\"https:\/\/launchpad.net\/~webupd8team\/+archive\/java\" title=\"launchpad.net\">WebUpd8Team\/java PPA<\/a> and <a href=\"http:\/\/www.webupd8.org\/2012\/01\/install-oracle-java-jdk-7-in-ubuntu-via.html\" title=\"webupd8.org\">www.webupd8.org<\/a>.<\/p>\n<p>Currently, the <code>apt-get-install oracle-java7-installer<\/code> command will fail, leaving a file at <code>\/var\/cache\/oracle-jdk7-installer\/jdk-7u51-linux-*.tar.gz<\/code> that is a plain .html file that contains &#8220;Sorry! In order to download products from Oracle Technology Network you must agree to the OTN license terms&#8221;  <\/p>\n<p>Nothing I&#8217;ve tried will appease the Oracle license police.<\/p>\n<p>Instead, my current &#8220;provision Java&#8221; script uses version &#8220;8&#8221; &#8211; as in &#8220;<code>oracle-java8-installer<\/code>&#8220;, which is working.<\/p>\n<p>So, if you have the luxury of using java8 instead of java7, you can just update your provisioning scripts.  My current script (because I&#8217;m tired of searching for the instructions) is below.<\/p>\n<p>Run these commands as root:<\/p>\n<p><code># we need this to avoid weird \"IP not found\" errors:<br \/>\napt-get update<br \/>\n# if you need to get 'add-apt-repository', you need python-software-properties<br \/>\n#uncomment# yes | apt-get install python-software-properties<br \/>\nyes | add-apt-repository ppa:webupd8team\/java<br \/>\napt-get update<br \/>\n# there is a manual license screen here:<br \/>\napt-get install oracle-java8-installer<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For automatic provisioning that installs the official Oracle Java package, many paths lead to WebUpd8Team\/java PPA and www.webupd8.org. Currently, the apt-get-install oracle-java7-installer command will fail, leaving a file at \/var\/cache\/oracle-jdk7-installer\/jdk-7u51-linux-*.tar.gz that is a plain .html file that contains &#8220;Sorry! In &hellip; <a href=\"https:\/\/tiemensfamily.com\/timoncs\/2014\/03\/15\/oracle-adds-license-to-java7-installer-fails\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,8],"tags":[],"_links":{"self":[{"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/posts\/479"}],"collection":[{"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/comments?post=479"}],"version-history":[{"count":0,"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/posts\/479\/revisions"}],"wp:attachment":[{"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/media?parent=479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/categories?post=479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tiemensfamily.com\/timoncs\/wp-json\/wp\/v2\/tags?post=479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}