Install Sun Java 7.x on Debian Squeeze

It might look weird to install Sun Java from a Ubuntu Repo- however it works at least it worked for my installation-

$ su root
# echo "deb precise main" > /etc/apt/sources.list.d/webupd8team-java.list
# echo "deb-src precise main" >> /etc/apt/sources.list.d/webupd8team-java.list
# apt-key adv –keyserver –recv-keys EEA14886
# apt-get update
# apt-get install oracle-java7-installer
# java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
# exit


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.