Guest User

Untitled

a guest
Apr 26th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. sudo apt-get update
  4. sudo apt-get install -y software-properties-common debconf-utils
  5. sudo add-apt-repository -y ppa:webupd8team/java
  6. sudo apt-get update
  7. sudo echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections
  8. sudo apt-get install -y oracle-java8-installer
  9. #sudo update-alternatives --config java;
  10. sudo apt-get install -y oracle-java8-set-default
  11. java -version;
Add Comment
Please, Sign In to add comment