Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1:Open your terminal
- 2:To make sure you don't have Open JDK installed type this
- command into your terminal: sudo apt-get purge openjdk*
- 3:Your going to need to add the PPA so type in this command: sudo add-apt-repository ppa:webupd8team/java
- 4:Then you need to update your repo index by typing this command in: sudo apt-get update
- 5:Type in the corresponding command below to pick what java you want to install
- To install Java 8 type In this command:
- sudo apt-get install oracle-java8-installer
- To install Java 7 type in this command:
- sudo apt-get install oracle-java7-installer
- To install Java 6 type in this command:
- sudo apt-get install oracle-java6-installer
- 6:Type in this command to update your repo index again:
- sudo apt-get update
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement