LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1016|回复: 9

etch 下如何安装 jdk, 最好是java6

[复制链接]
发表于 2008-3-24 21:05:15 | 显示全部楼层 |阅读模式
etch 下如何安装 jdk, 最好是java6
发表于 2008-3-24 21:56:58 | 显示全部楼层
搜索 sun-java
回复 支持 反对

使用道具 举报

发表于 2008-3-25 00:23:44 | 显示全部楼层
用testing的源,里面有sun-java6,可能安装时有些包也要升级。
回复 支持 反对

使用道具 举报

发表于 2008-3-25 14:22:54 | 显示全部楼层
编辑sources.list文件的时候注意在apt源的最后加上non-free
回复 支持 反对

使用道具 举报

发表于 2008-3-25 14:35:30 | 显示全部楼层
etch源aptitude install sun-java5-jdk,
回复 支持 反对

使用道具 举报

发表于 2008-3-25 16:22:59 | 显示全部楼层
etch的话可以用backport的源,有java6,否则就用楼上的方法装5。
最好不要用testing的源
回复 支持 反对

使用道具 举报

发表于 2008-3-26 15:56:44 | 显示全部楼层
http://java.sun.com
自己下载一个jdk6 。 注意amd64/i386两个版本...
是一个jdk6.bin的文件.
chmod +x 后, 直接运行.
然后 su root
vi /etc/profile
在最后添加:
export JAVA_HOME="/usr/jdk1.6.0"
export JRE_HOME="/usr/jdk1.6.0/jre"
export CLASSPATH="/usr/jdk1.6.0/lib/tools.jar:/usr/jdk1.6.0/lib/dt.jar:."
export PATH=$PATHJAVA_HOME/bin

最后执行
source /etc/profile
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-26 23:08:42 | 显示全部楼层
弱弱的问一下,什么叫testing源
我的sources.list
#
# deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 CD Binary-1 20080217-11:50]/ etch contrib main

# deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 CD Binary-1 20080217-11:50]/ etch contrib main

# Line commented out by installer because it failed to verify:
# deb http://security.debian.org/ etch/updates main contrib
# Line commented out by installer because it failed to verify:
# deb-src http://security.debian.org/ etch/updates main contrib

#cn99
deb http://debian.cn99.com/debian etch main contrib non-free
# deb-src http://debian.cn99.com/debian etch main contrib non-free
#
deb http://debian.cn99.com/debian-security etch/updates main contrib non-free
回复 支持 反对

使用道具 举报

发表于 2008-3-27 07:19:18 | 显示全部楼层
Post by ivywjhua;1831372
弱弱的问一下,什么叫testing源
我的sources.list
#
# deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 CD Binary-1 20080217-11:50]/ etch contrib main

# deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 CD Binary-1 20080217-11:50]/ etch contrib main

# Line commented out by installer because it failed to verify:
# deb http://security.debian.org/ etch/updates main contrib
# Line commented out by installer because it failed to verify:
# deb-src http://security.debian.org/ etch/updates main contrib

#cn99
[color="Blue"]deb [color="Blue"]http://debian.cn99.com/debian [color="Red"]etch main contrib non-free
# deb-src http://debian.cn99.com/debian etch main contrib non-free
#
deb http://debian.cn99.com/debian-security etch/updates main contrib non-free
即是将 etch 改成 testing 或当前 testing branch 的开发代号,现时是 lenny
回复 支持 反对

使用道具 举报

发表于 2008-3-27 18:28:12 | 显示全部楼层
嗯,etch里还没有java6,不过java5已经有了。
http://www.linux-wiki.cn/index.p ... 3%85jre%E6%88%96jdk
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表