Skip to content

Instantly share code, notes, and snippets.

@cgrandsjo
Forked from igniteflow/oracle-java-ubuntu.sh
Created March 14, 2014 09:29
Show Gist options
  • Save cgrandsjo/9544717 to your computer and use it in GitHub Desktop.
Save cgrandsjo/9544717 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Install Oracle Java 7 on Ubuntu in a script i.e. no confirmation
sudo add-apt-repository ppa:webupd8team/java -y
sudo echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
sudo echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
sudo apt-get install oracle-java7-installer
sudo update-java-alternatives -s java-7-oracle
java -version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment