[Build Development Environment] install Eclipse in Linux for C/C ++ development, linuxeclipse

Source: Internet
Author: User

[Build Development Environment] install Eclipse in Linux for C/C ++ development, linuxeclipse

  • Introduction

C/C ++ IDE is selected in Linux. Eclipse is recommended.

Tools involved: JDK and Eclipse.

 

  • Installation Process

Refer to the http://www.cnblogs.com/lovickie/p/4364032.html to download JDK and Eclipse C ++, get the jdk-8u40-linux-i586.tar.gz and eclipse-cpp-luna-SR2-linux-gtk.tar.gz, assuming in/root/software.

Cd/root/software

Tar zxvf jdk-8u40-linux-i586.tar.gz

Tar zxvf eclipse-cpp-luna-SR2-linux-gtk.tar.gz

Vim ~ /. Bashrc

Add the following text at the end. Note that jdk1.8.0 _ 40 is the name of the extracted directory:

export JAVA_HOME=/root/software/jdk1.8.0_40export PATH=$PATH:$JAVA_HOME/binexport CLASSPATH=$CLASSPATH:$JAVA_HOME/lib

Vim eclipse/eclipse. sh

The Edit content is as follows:

#!/bin/bashexport JAVA_HOME=/root/software/jdk1.8.0_40export PATH=$PATH:$JAVA_HOME/binexport CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/root/software/eclipse/eclipse -vm $JAVA_HOME/bin/java

Chmod a + x eclipse/eclipse. sh

Ln-s/root/software/eclipse. sh/root/Desktop/Eclipse

Note that the absolute path should be used when creating the link.

For eclipse. sh or desktop link, you can right-click "properties" and change the icon to/root/software/Eclipse/icon. xpm. Right-click "stretch icon" to adjust the icon size.

Run/root/software/eclipse. sh or double-click Eclipse on the desktop to view the Eclipse startup interface.

 

  • Conclusion

None.

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.