Skip to content

Instantly share code, notes, and snippets.

@marc0der
Created April 7, 2011 17:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marc0der/908288 to your computer and use it in GitHub Desktop.
Save marc0der/908288 to your computer and use it in GitHub Desktop.
Install Java 7 binary snapshot release with update-alternatives on debian/ubuntu
wget -c http://www.java.net/download/jdk7/archive/b136/binaries/jdk-7-ea-bin-b136-linux-x64-31_mar_2011.tar.gz
sudo tar zxvf jdk-7-ea-bin-b136-linux-x64-31_mar_2011.tar.gz -C /usr/local
sudo update-alternatives --install /usr/bin/java java /usr/local/jdk1.7.0/bin/java 1 --slave /usr/local/man/man1/java.1 java.1 /usr/local/jdk1.7.0/man/man1/java.1
sudo update-alternatives --install /usr/bin/javac javac /usr/local/jdk1.7.0/bin/javac 1 --slave /usr/local/man/man1/javac.1 javac.1 /usr/local/jdk1.7.0/man/man1/javac.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment