본문 바로가기
JAVA

install JDK on Debian(Lenny)

by edupicker(체르니) 2009. 8. 8.
1. add in sources.list
    deb http://ftp.de.debian.org/debian/ lenny main non-free
    deb-src http://ftp.de.debian.org/debian/ lenny main non-free
    or 
    deb http://mirrors.kernel.org/debian/ lenny main non-free
    deb-src http://mirrors.kernel.org/debian/ lenny main non-free

2. update by apt-get or aptitude
 2.1 apt-get update
 2.2 aptitude update

3. Install by apt-get or aptitude
 3.1 apt-get install sun-java6-jdk
 3.2 aptitude install sun-java6-jdk

4.Make it available System wide
 update-java-alternatives -s java-6-sun
 echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' | tee -a /etc/environment

that's all.

    


'JAVA' 카테고리의 다른 글

Project Export와 Import하기  (0) 2010.02.23
예제로 JAVA에서 Overloading 이해하기  (0) 2008.11.12
tomcat 6.0.18 설치하기  (0) 2008.10.23
How to connect JAVADB under NETBEAN6.5  (0) 2008.10.22
StringTokenizer 사용법  (0) 2008.10.20