{"action":"opened","issue":{"url":"https://api.github.com/repos/codeTigerbool/helpInfo/issues/11","repository_url":"https://api.github.com/repos/codeTigerbool/helpInfo","labels_url":"https://api.github.com/repos/codeTigerbool/helpInfo/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/codeTigerbool/helpInfo/issues/11/comments","events_url":"https://api.github.com/repos/codeTigerbool/helpInfo/issues/11/events","html_url":"https://github.com/codeTigerbool/helpInfo/issues/11","id":342891356,"node_id":"MDU6SXNzdWUzNDI4OTEzNTY=","number":11,"title":"Install JDK on Ubuntu","user":{"login":"codeTigerbool","id":39974610,"node_id":"MDQ6VXNlcjM5OTc0NjEw","avatar_url":"https://avatars3.githubusercontent.com/u/39974610?v=4","gravatar_id":"","url":"https://api.github.com/users/codeTigerbool","html_url":"https://github.com/codeTigerbool","followers_url":"https://api.github.com/users/codeTigerbool/followers","following_url":"https://api.github.com/users/codeTigerbool/following{/other_user}","gists_url":"https://api.github.com/users/codeTigerbool/gists{/gist_id}","starred_url":"https://api.github.com/users/codeTigerbool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeTigerbool/subscriptions","organizations_url":"https://api.github.com/users/codeTigerbool/orgs","repos_url":"https://api.github.com/users/codeTigerbool/repos","events_url":"https://api.github.com/users/codeTigerbool/events{/privacy}","received_events_url":"https://api.github.com/users/codeTigerbool/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-19T21:12:38Z","updated_at":"2018-07-19T21:12:38Z","closed_at":null,"author_association":"OWNER","body":"1. Add the PPA.\r\n\r\nOpen terminal (Ctrl+Alt+T) and run the command:\r\n\r\nsudo add-apt-repository ppa:webupd8team/java\r\n\r\nType in your password when it asks and hit Enter.\r\n\r\njava-installer-ppa\r\n\r\n2. Update and install the installer script:\r\n\r\nRun commands to update system package index and install Java installer script:\r\n\r\nsudo apt update; sudo apt install oracle-java8-installer\r\n\r\nYou may replace oracle-java8-installer with oracle-java9-installer to install Java 9.\r\n\r\nWhile the install process, you have to accept Java license to continue downloading & installing Java binaries.\r\n\r\nOracle Java License\r\n\r\n3. Check the Java version\r\n\r\nTo check the Java version after installing the package, run command:\r\n\r\njavac -version\r\n\r\ncheck out java version\r\n\r\n4. Set Java environment variables\r\n\r\nThe PPA also contains a package to automatically set Java environment variables, just run command:\r\n\r\nsudo apt install oracle-java8-set-default\r\n\r\nFor Java 9, install the package oracle-java9-set-default instead."}}
{"actor":{"display_login":"codeTigerbool"}}