One, download jdk
TAR-XVZF jdk-8u45-linux-x64.tar.gz//Unzip and install the JDK
Second, modify the environment configuration variable
Vim/home/woshareliu/.bashrc
Add the following:
Export JAVA_HOME=/HOME/WOSHARELIU/DOWNLOADS/JDK1.8.0_45//Here is the JDK unzip the file address after installation
Export classpath= $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib
Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH
Vim/etc/profile
Add the following:
Export JAVA_HOME=/HOME/WOSHARELIU/DOWNLOADS/JDK1.8.0_45//Here is the JDK unzip the file address after installation
Export classpath= $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib
Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH
Third, download eclipse
1, you can download the Eclipse installation package, then unzip the installation
2, you can also sudo apt-get install eclipse installation
Four, install C language development plug-in
1, you can add plug-ins in eclipse to add ECLIPSE-CDT
2, you can also sodu apt-get install ECLIPSE-CDT
Five, install C compiler gcc/g++
Sodu apt-get Install GCC
Six, restart the system to open Eclipse run, test whether through
Install eclipse to develop C language program under Linux