Centos6.7 running Eclipse Error Resolution

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.