关于eclipse安装实例
程序员文章站
2022-06-14 21:17:01
...
#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
下载 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安装实例的详细内容,更多请关注其它相关文章!