免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1186 | 回复: 0
打印 上一主题 下一主题

在Ubuntu 安装 JDK , Ecllipse 完全手册:P [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-11 09:46 |只看该作者 |倒序浏览
setup Eclipse On ubuntu
主要是为了装 eclipse , 然后发现要jdk .
然后发现ubuntu这么省事儿的发行版装jdk也有自己的麻烦。


1 . The very important first Step :
edit the /etc/apt/source.list
(做好了这一步才能正确安装java-package,fakeroot make-jpkg 才能成功。)
debian把这个工具放到了contrib库 , ubuntu 则放到了multiverse 库中。
所以必须把 multiversi加到deb responsory的末尾。
然后apt-get update
add new apt source branch into the list :

# Ubuntu 5.10 "breezy"
deb
http://archive.ubuntu.com/ubuntu
breezy main restricted universe multiverse
deb
http://security.ubuntu.com/ubuntu
breezy-security main restricted universe multiverse
# Ubuntu "dapper"
deb
http://archive.ubuntu.com/ubuntu
dapper main restricted universe multiverse
deb
http://security.ubuntu.com/ubuntu
dapper-security main restricted universe multiverse



4
then we can go down through next step to install jdk (or jre )
5
Install java-package
Now install the packagejava-package which provides the make-jpkg utility for creating the .deb archive of the Java installation file/archive. Execute
apt-get install java-package
fakeroot make-jpkg jre-1_5_0_05-linux-i586.bin
dpkg -i sun-j2re1.5_1.5.0+update05_i386.deb
6
install eclipse
write a shell like this :
#eclipse
#
export JAVA_HOME=/usr/java/jdk1.5.0_06
export CLASSPATH=/usr/java/jdk1.5.0_06/lib
/opt/eclipse/eclipse -vm /usr/java/jdk1.5.0_06/bin/java -data ~/workspace &

7
install cdt
8
install our own plugin


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/5892/showart_98069.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP