There are some problems with running Eclipse C + + in CentOS today. The main reason is that JDK point installation and environment variables are always incorrect.
The attempt was manually configured in the/etc/profile and did not succeed.
Done the following steps to successfully resolve.
1. To view the JDK installation version, the command is: RPM-QA | grep JDK, run the results as follows
Java-1.8.0-openjdk-1.8.0.144-0.b01.el6_9.x86_64
Jdk-9-9-ga.x86_64
Java-1.6.0-openjdk-1.6.0.35-1.13.7.1.el6_6.x86_64
Java-1.7.0-openjdk-1.7.0.79-2.5.5.4.el6.x86_64
Java-1.8.0-openjdk-devel-1.8.0.144-0.b01.el6_9.x86_64
Java-1.8.0-openjdk-headless-1.8.0.144-0.b01.el6_9.x86_64
2. Delete versions 9 and 1.6, the command is
Yum-y Remove jdk-9-9-ga.x86_64
Yum-y Remove java-1.6.0-openjdk-1.6.0.35-1.13.7.1.el6_6.x86_64
Problem solved.
Installing the 1.8-point step is done before deleting the version, the command is as follows, this step is more critical. Eliminates the hassle of manually setting environment variable points.
[email protected] softwares]# Yum install Java-1.8.0-openjdk-devel
Loaded Plugins:fastestmirror, Refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base:mirrors.sohu.com
* extras:mirrors.sohu.com
* updates:mirrors.sohu.com
Gitlab_gitlab-ce/signature | 836 B 00:00
Gitlab_gitlab-ce/signature | 1.0 KB 00:00 ...
Gitlab_gitlab-ce-source/signature | 836 B 00:00
Gitlab_gitlab-ce-source/signature | 951 B 00:00 ...
Resolving Dependencies
--Running Transaction check
---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.144-0.b01.el6_9 'll be installed
--Processing DEPENDENCY:JAVA-1.8.0-OPENJDK = 1:1.8.0.144-0.b01.el6_9 for package:1: Java-1.8.0-openjdk-devel-1.8.0.144-0.b01.el6_9.x86_64
--processing Dependency:libawt_xawt.so (sunwprivate_1.1) (64bit) for package:1: Java-1.8.0-openjdk-devel-1.8.0.144-0.b01.el6_9.x86_64
--processing Dependency:libawt_xawt.so () (64bit) for package:1:java-1.8.0-openjdk-devel-1.8.0.144-0.b01.el6_9. x86_64
--Running Transaction check
......
Centos6.7 running Eclipse Error Resolution