The reason to install Eclipse on Linux is that I started by eclipse+mingw+samba+gdbserver the remote operation on Windows, ready to compile debugging Nginx source code, but in the process of compiling debugging, feel very inconvenient. Instead, switch to Linux to install the development environment:
First, Download:
1. JDK
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
64 or 32 bit based on their OS selection download, I downloaded the jdk-8u91-linux-i586
2. Eclipse Integrated CDT Environment
Http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/mars2
I downloaded the Linux 32bit package Eclipse-cpp-indigo-sr1-incubation-linux-gtk.tar
Upload the downloaded package to/usr/local, then unzip
Second, install the JDK:
TAR-ZXVF jdk-8u91-linux-i586
To configure environment variables:
Vim/etc/profile
After opening the file, add the following configuration text to the end of the file, where Java_home is filled out according to the actual JDK directory:
#set Java Environment
java_home=/usr/local/jdk1.8.0_91
Export Java_home
Path= $PATH: $JAVA _home/bin
Export PATH
Classpath=.: $JAVA _home/lib
Export CLASSPATH
Third, configure Eclipse
Go to catalogue/usr/local
TAR-ZXVF Eclipse-cpp-indigo-sr1-incubation-linux-gtk.tar
Now that you see the Eclipse program under directory/usr/local/eclipse/, the following error may be reported when booting:
A Java Runtime Environment (JRE) or Java development Kit (JDK)
Must is available in order to run Eclipse. No Java Virtual Machine
was found after searching the following locations:
/home/injavawetrust/program/eclipse/jre/bin/java
Java in your current PATH
The workaround is to enter your Eclipse directory at the terminal and enter:
mkdir JRE
CD JRE
Ln-s your JDK directory/bin bin
Now you can start eclipse normally and go into the IDE-friendly interface.
Installing Eclipse on Linux