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