Unbuntu 16.04.2 Installing the Eclipse C + + development environment

Source: Internet
Author: User

1. Install Java

(1) Add the source first:

sudo gedit/etc/apt/sources.list

In the open file, add the following and save:

Deb Http://ppa. Launchpad. Net/webupd8team/java/ubuntu xenial Main
Deb-src Http://ppa. Launchpad. Net/webupd8team/java/ubuntu xenial main

(2) Installation key:

< Span class= "Hljs-preprocessor" >sudo apt-key Span class= "hljs-comment" >adv -- keyserver hkp://keyserver.ubuntu. com:80 --recv -keys EEA14886

(3) Execution:

sudo apt-get update

(4) Run the Install command to start installing Java:

sudo apt-get install Oracle-java8-installer Oracle-java8-set-default
sudo apt-get install --no-install-recommends Oracle-java8-installer

< Span class= "Hljs-attribute" > < Span class= "Hljs-attribute" > (5) View installation results:

< Span class= "Hljs-attribute" > < Span class= "Hljs-attribute" > java-version

< Span class= "Hljs-attribute" > < Span class= "Hljs-attribute" > javac-version

< Span class= "Hljs-attribute" > < Span class= "Hljs-attribute" > (6) path configuration

< Span class= "Hljs-attribute" > < Span class= "Hljs-attribute" > Open. bashrc file:

< Span class= "Hljs-attribute" > < Span class= "Hljs-attribute" > gedit. BASHRC

< Span class= "Hljs-attribute" > < Span class= "Hljs-attribute" > add a path to the open file and save:

< Span class= "Hljs-attribute" > export Java_home=/usr/lib/jvm/java-8-oracle 
export JRE_ Home=${java_home}/jre    
export Classpath=.:${java_home}/lib:${JRE_HOME}/lib     
export path=${java_home}/bin: $PATH

< Span class= "Hljs-attribute" > < Span class= "Hljs-attribute" > < Span class= "Hljs-keyword" >< Span class= "hljs-variable" >2 , install eclipse

< Span class= "Hljs-attribute" > < Span class= "Hljs-attribute" > < Span class= "Hljs-keyword" >< Span class= "hljs-variable" > (1) Download the eclipse C + + installation package from the official website to local

< Span class= "Hljs-attribute" > < Span class= "Hljs-attribute" > < Span class= "Hljs-keyword" >< Span class= "hljs-variable" > (2) Unzip the installation package

< Span class= "Hljs-attribute" > < Span class= "Hljs-attribute" > < Span class= "Hljs-keyword" >< Span class= "hljs-variable" > (3) Move Eclipse to/usr/local:

< Span class= "Hljs-attribute" > < Span class= "Hljs-attribute" > < Span class= "Hljs-keyword" >< Span class= "hljs-variable" > sudo mv <path>/eclipse/usr/local

< Span class= "Hljs-attribute" > < Span class= "Hljs-attribute" > < Span class= "Hljs-keyword" >< Span class= "hljs-variable" > (4) Run

< Span class= "Hljs-attribute" > < Span class= "Hljs-attribute" > < Span class= "Hljs-keyword" >< Span class= "hljs-variable" >/ Sur/local/eclipse/eclipse

Unbuntu 16.04.2 Installing the Eclipse C + + development environment

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.