#tar zxvf eclipse-inst-linux64.tar.gz # cd eclipse-installer/ # ./eclipse-inst Eclipse Installer: GTK+ Version Check Incompatible JVM: Version 1.6.0_45 of the JVM is not suitable for this product. Version: 1.8 or greater is required.
從官網www.eclipse.org/下載的eclipse-inst-linux64.tar.gz需要jdk1.8以上版本
只好重新安裝JDK
下載 解壓縮後依舊放在/usr/local/java下
# pwd /usr/local/java # ll 总用量 8 drwxr-xr-x. 8 root root 4096 3月 27 2013 jdk1.6.0_45 drwxr-xr-x. 8 uucp 143 4096 3月 15 16:35 jdk1.8.0_131 #
更改/etc/profile
# vi /etc/profile ... unset i unset -f pathmunge #JDK #export JAVA_HOME=/usr/local/java/jdk1.6.0_45 #export PATH=$JAVA_HOME/bin:$PATH #export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export JAVA_HOME=/usr/local/java/jdk1.8.0_131 export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar ... # source /etc/profile # java -version java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode) #
既然都是新的,tomcat也換成apache-tomcat-9.0.0.M21.tar.gz你好了
執行# ./eclipse-inst
出現報錯,日誌見附件
應該是缺少GTK庫
掛載安裝光碟CentOS-6.9-x86_64-bin-DVD1.iso,並設定本地端CentOS-6.9-x86_64-bin-DVD1.iso,並設定本機來源已載入源外掛:fastestmirror
Bad id for repo: local server, byte = 5Cleaning repos:
清理過
# mkdir cdrom # mount /dev/cdrom cdrom/ # vi /etc/yum.repos.d/local.repo #vi local.repo [local server] name=local server baseurl=file:///media/cdrom enabled=1 gpgcheck=0 ... # yum clean all
以上是關於eclipse安裝實例的詳細內容。更多資訊請關注PHP中文網其他相關文章!