Advertisement
ridjis

Java on Ubuntu

Oct 24th, 2014
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. 1:Open your terminal
  2.  
  3. 2:To make sure you don't have Open JDK installed type this
  4. command into your terminal: sudo apt-get purge openjdk*
  5.  
  6. 3:Your going to need to add the PPA so type in this command: sudo add-apt-repository ppa:webupd8team/java
  7.  
  8. 4:Then you need to update your repo index by typing this command in: sudo apt-get update
  9.  
  10. 5:Type in the corresponding command below to pick what java you want to install
  11.  
  12. To install Java 8 type In this command:
  13. sudo apt-get install oracle-java8-installer
  14.  
  15. To install Java 7 type in this command:
  16. sudo apt-get install oracle-java7-installer
  17.  
  18. To install Java 6 type in this command:
  19. sudo apt-get install oracle-java6-installer
  20.  
  21. 6:Type in this command to update your repo index again:
  22. sudo apt-get update
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement