红联Linux门户
Linux帮助

How to install Java6 on Debian 4.0

发布时间:2008-04-10 00:12:11来源:红联作者:Inetxper
1. add new line to /etc/apt/sources.list
deb http://ftp.debian.org/debian/ unstable main non-free
2. add new line to /etc/apt/apt.conf.d/70debconf
APT::Cache-Limit "100000000";
3. created /etc/apt/preferences
Package: *
Pin: release a=stable
Pin-Priority: 700

Package: *
Pin: release a=unstable
Pin-Priority: 600
4. run apt-get update
5. Install the eight sun-java6-* packages
sun-java6-bin
sun-java6-demo
sun-java6-doc
sun-java6-fonts
sun-java6-javadb
sun-java6-jdk
sun-java6-jre
sun-java6-source
with
[root@gao]# feta install sbut i use apt-get install sun-java6-jdk
ps: In case others have a problem getting Eclipse to work with java6 in Debian or Ubuntu. From: http://ubuntuforums.org/showthread.php?t=201378 you may need to edit Eclipse's java_home file gedit /etc/eclipse/java_home and add /usr/lib/jvm/java-6-sun to the top of the file.
文章评论

共有 0 条评论