Home > Web Front-end > JS Tutorial > body text

About eclipse installation example

零下一度
Release: 2017-07-03 15:53:19
Original
1810 people have browsed it

#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.
Copy after login

The eclipse-inst-linux64.tar.gz downloaded from the official website www.eclipse.org/ requires jdk1.8 or above version

Has to be reinstalledJDK

Download jdk-8u131-linux-x64.tar.gz, unzip it and still put it under /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
#
Copy after login

Change /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)
#
Copy after login

Since they are all new , tomcat has also been replaced with apache-tomcat-9.0.0.M21.tar.gz

Execute# ./eclipse-inst

An error message appears, see the attachment for the log

It should be that the GTK library is missing

Mount the installation CD CentOS-6.9-x86_64-bin-DVD1.iso, and set the local yum source

# 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
Copy after login

Loaded plug-in: fastestmirror
Bad id for repo: local server, byte = 5
Cleaning repos:
Clean everything

# yum makecache
已加载插件:fastestmirror
Bad id for repo: local server, byte =   5
Determining fastest mirrors
元数据缓存已建立
#
Copy after login

Forget it, there is a problem,

install directly with yum install eclipse

Or not. . .

Because it is a minimal centos installation without a desktop, an error occurred when running eclipse

Start over and choose the desktop centos with development environment

The above is the detailed content of About eclipse installation example. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template