This guide assumes you have a brand-new Ubuntu 14.04 VPS from AKLWEB Host, using root. If you aren’t logged in as root, type<\/em><\/p>\n then enter your root password. You will be logged into the root account.<\/em><\/p>\n Java 8 is a 2014 update to Java that includes security updates, performance updates, and new programming enhancements. Some of the new enhancements include lambda expressions, date and time API, and the Nashhorn JavaScript engine.<\/p>\n At the time of writing, Java 8 is not in the sources list by default, so we have to add the “Webupd8” repo, which contains Java 8.<\/p>\n Run the following command to install Java 8:<\/p>\n During the installation, you will need to agree to the Oracle license. This is as simple as selecting “yes” and hitting “enter”.<\/p>\n Execute this command to check that the installation was successful:<\/p>\n … and you will output similar to the following (depending on the current version of Java 8).<\/p>\n And you’re good to go! Java 8 is now installed on your Ubuntu VPS.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[242,247],"manual_kb_tag":[442],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2881"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2881"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2881\/revisions"}],"predecessor-version":[{"id":2882,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2881\/revisions\/2882"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2881"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2881"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}su -\r\n<\/code><\/pre>\n
Step 1: Add the repository<\/h3>\n
add-apt-repository ppa:webupd8team\/java\r\n<\/code><\/pre>\n
Step 2: Update the repository list<\/h3>\n
apt-get update\r\n<\/code><\/pre>\n
Step 3: Install<\/h3>\n
apt-get install oracle-java8-installer\r\n<\/code><\/pre>\n
Step 4: Verify installation<\/h3>\n
java -version\r\n<\/code><\/pre>\n
java version \"1.8.0_25\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_25-b17)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)\r\n<\/code><\/pre>\n