在Ubuntu 安装 JDK , Ecllipse 完全手册:P
时间:2006-04-11 来源:selichine
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
(做好了这一步才能正确安装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
相关阅读 更多 +