您的位置:首页 > 编程语言 > Java开发

HOWTO install "Eclipse CDT"

2009-12-21 09:50 369 查看
(1)download JRE(java run enviroment)
from: http://www.java.com/zh_CN/download/linux_manual.jsp?locale=zh_CN&host=www.java.com:80 select: Linux (自解压文件) 文件大小: 19.9 MB

(2)download Eclipse IDE
from: http://www.eclipse.org/downloads/ select: Eclipse IDE for C/C++ Developers (79 MB)

(3)install JRE

(I)
_______________________________________________
su
_______________________________________________
switch to root

(II)
to make a directory named"java" under /usr/local/, type
_______________________________________________
mkdir /usr/local/java
_______________________________________________
in terminal

(III)
then move "jre-6u17-linux-i586.bin" to /usr/local/java

(IV)
_______________________________________________
chmod a+x jre-6u17-linux-i586.bin
_______________________________________________

(V)
_______________________________________________
./jre-6u17-linux-i586.bin
_______________________________________________

press "space" key continuely before you reach the end, and type "yes" to install.
then it will extract itself and generate a new folder"jre1.6.0_17" under /usr/local/java/
the last step is to add enviroment variable

(VI)
tpye
______________________________________________
gedit /etc/profile
______________________________________________

and copy the following words into it
______________________________________________
PATH=$PATH:/usr/local/java/jre1.6.0_17/bin
export JAVA_HOME=/usr/local/java/jre1.6.0_17
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
______________________________________________

save it

(VII)
"restart"

(VIII)
after you have restart
type
___________________________________________
java -version
___________________________________________
if you can see words as following
_________________________________________________________________
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
_________________________________________________________________

it means that you have successfully installed JRE

(3)install Eclipse cdt

(I)extract "eclipse-cpp-galileo-SR1-linux-gtk.tar.gz"
(II)move "eclipse" to "/usr/local"
(III)"cd eclipse"
(IV) "./eclipse",eclipse will run now!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: