Install Eclipse C ++ environment under liunx

Step 1: Install the JDK

  JDK into the official website: https://www.oracle.com/technetwork/java/javase/downloads/index.html   to download the corresponding jdk  

  

 

 

  

 

 

  Note: JDK choose their own system.

Install JDK:

  1, JDK will extract to a system folder.

mkdir sudo / opt / jvm // create a jvm folder 
sudo tar zxvf jdk-13_linux-x64_bin.tar.gz -C /opt.jvm

  

 

   After extracting file folder.

  2, the configuration environment variable JDK

sudo / etc / profile   // modify profile

 

Increase in the lower portion of the end profile  

export JAVA_HOME=/opt/jvm/jdk-13
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH

 3, update the environment variables

sudo source /etc/profile

 4, to see if the installation was successful

java -version

  

 

 

Step 2: Install eclipse

  1, into the eclipse official website to download    Eclipse IDE for C / C ++ Developers  

    Download: https://www.eclipse.org/downloads/packages/

  2, unzip eclipse   

tar zxvf eclipse-cpp-2019-09-R-linux-gtk-x86_64.tar.gz -C /home/book

  

 

   3. Open the application into the eclipse  

./eclipse

 

 The installation is complete. . . .

 

Guess you like

Origin www.cnblogs.com/hjxzjp/p/11588543.html