| | 1 | == Installing Java for Debian 6 Squeeze == |
| | 2 | |
| | 3 | {{{ |
| | 4 | vim /etc/apt/sources.list |
| | 5 | # for sun-java packages in unstable |
| | 6 | deb http://ftp.debian.org/debian/ unstable non-free |
| | 7 | deb-src http://ftp.debian.org/debian/ unstable non-free |
| | 8 | |
| | 9 | apt-get update |
| | 10 | apt-get install sun-java6-jdk |
| | 11 | vim /etc/profile |
| | 12 | JAVA_HOME=/usr/lib/jvm/java-6-sun |
| | 13 | export JAVA_HOME |
| | 14 | }}} |
| | 15 | |
| | 16 | The Sun installer will present a license in a curses form. Depending on your terminal emulator, arrow keys may not work for navigation. If not, try !^f and !^b to navigate to the <ok>, and enter to select. Then you'll be asked to accept (or not) the license -- again use !^f or !^b to move to <yes> and hit enter. |
| | 17 | |
| | 18 | or: |
| | 19 | * [http://java.sun.com/javase/downloads/widget/jdk6.jsp Download the JDK] & install it: |
| | 20 | {{{ |
| | 21 | cd /usr/local |
| | 22 | sh ~/jdk-6u21-linux-i586.bin |
| | 23 | ln -sf /usr/local/jdk1.6.0_21 /usr/local/java |
| | 24 | vim /etc/profile |
| | 25 | JAVA_HOME=/usr/local/java |
| | 26 | export JAVA_HOME |
| | 27 | }}} |