Ubuntu12.04 JVM和Eclipse安裝
1.運行eclipse出現如下錯誤
Version1.6.0_35 of the JVM is not suitable for this product. Version1.7or geeater is required.
2.去甲骨文下載最新JavaSE: jdk-8u51-linux-i586.tar.gz並配置環境變量
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
解壓並放置在/usr/java/jdk1.8.0_51
配置環境變量/etx/profile
3.下載eclipse:eclipse-cpp-mars-R-linux-gtk.tar.gz
http://www.eclipse.org/downloads/
如上添加至環境變量。
4.運行eclipse
如果出現在一個終端可以運行,但另一個終端不可運行,或者JAVA版本也不對的情況,建議source/etc/profile