Manual installation of the Eclipse CDT neon.2 under Debian 8

Source: Internet
Author: User

Download eclipse-cpp-neon-2-linux-gtk-x86_ from Http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/neon2 64.tar.gz, unzip and install to directory/opt/, run/opt/eclipse/eclipse, error:

It looks like Java 1.8 is needed.

To view the Java version:

$ java-version

Java Version "1.7.0_111"
OpenJDK Runtime Environment (IcedTea 2.6.7) (7U111-2.6.7-2~DEB8U1)
OpenJDK 64-bit Server VM (build 24.111-b01, Mixed mode)

Find out where the Java command is:

$ which Java
/usr/bin/java
$ Ll/usr/bin/java
lrwxrwxrwx 1 root root 01:37/usr/bin/java-/etc/alternatives/java
$ Ll/etc/alternatives/java
lrwxrwxrwx 1 root root 15:36/etc/alternatives/java-/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java

Search the Internet for/etc/alternatives/java, find Http://unix.stackexchange.com/questions/100732/i-deleted-etc-alternatives-java, According to the statement, execute the following command to switch to version 1.8:

$ sudo update-alternatives--set Java/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java

Essentially it accomplishes the task of:

ln -s /usr/lib/jvm/jdk1.7.0_45/jre/bin/java /etc/alternatives/java

At this point, you can start eclipse again and run normally.

Manual installation of the Eclipse CDT neon.2 under Debian 8

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.