eclipse安装
#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.
從官網http://www.eclipse.org/下載的eclipse-inst-linux64.tar.gz需要jdk1.8以上版本
只好重新安裝JDK
下載?jdk-8u131-linux-x64.tar.gz ,解壓后依舊放在/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,并設置本地yum源
#?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 已加載插件:fastestmirror Bad?id?for?repo:?local?server,?byte?=???5 Cleaning?repos:? 清理一切 #?yum?makecache 已加載插件:fastestmirror Bad?id?for?repo:?local?server,?byte?=???5 Determining?fastest?mirrors 元數據緩存已建立 #算了,有點問題,
直接用 yum install eclipse 安裝
還是不行。。。
由于是最小化centos安裝,無桌面,運行eclipse時出錯
重頭再來,選擇桌面centos帶開發環境
下載eclipse-jee-neon-3-linux-gtk-x86_64.tar.gz 這個直接解壓就可以使用
轉載于:https://blog.51cto.com/chayemo/1939522
總結
- 上一篇: 环美亚二十年装修师傅分享,甲醛的八种来源
- 下一篇: 俩虚拟机间通过ssh互相登陆