1、download jdk,-
1377129.html
#rpm -ivh jdk-7u2-linux-i586.rpm
2、configure jdk
#vi /home/(username)/.bashrc
export JAVA_HOME=/usr/java/jdk1.7.0_02
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
3、修改所有用户的环境变量
#vi /etc/profile
export JAVA_HOME=/usr/java/jdk1.7.0_02
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
4、download eclipse for c/c++
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/indigo/SR1/eclipse-cpp-indigo-SR1-incubation-linux-gtk.tar.gz5、uncompress eclipse
#tar -zxvf eclipse-cpp-indigo-SR1-incubation-linux-gtk.tar.gz
#cd eclipse-cpp-indigo-SR1-incubation-linux-gtk.tar.gz
#./ecplipse
阅读(1738) | 评论(0) | 转发(0) |