Linux configuration supports C/C ++ project eclipse and java project eclipse

Source: Internet
Author: User
Tags gtk

Eclipse is an excellent source code editing tool that supports symbol table parsing like source insight. In addition, it also supports lexical analysis, syntax analysis, external symbols, introduction of external header files, SVN, CVS project management, and other functions. It is one of the powerful tools for software development in Linux.

The process of configuring eclipse that supports java is similar to that of C/C ++. The specific configuration steps are as follows:

Step 1: download the latest jdk version. This is because eclipse is written in java and must support java virtual machines when running on machines. Of course, you can also download jre, but considering that you need to configure eclipse that supports java projects, you can download the jdk environment. Note: select the operating system platform. Here the linix_x86 32-bit version is downloaded: jdk-7u5-linux-i586.tar.gz

Step 2: Download eclipse here. eclipse that supports java is: Eclipse IDE for Java EE Developers. eclipse that supports C/C ++ is: eclipse IDE for C/C ++ Developers (includes Incubating components ). Here are the compression files used: eclipse-jee-indigo-SR2-linux-gtk.tar.gz and eclipse-cpp-indigo-SR2-incubation-linux-gtk.tar.gz are recommended to download eclipse when using a Japanese server, the speed will be faster. For example, http an Advanced Institute of Science and Technology (http)

Step 3:

 

 
 
  1. Mkdir ~ /Software
  2. Cd ~ /Software # assume that the current directory is the download directory
  3.  
  4. Mkdir jdk
  5.  
  6. Mkdir eclipse_c
  7.  
  8. Mkdir eclipse_java
  9.  
  10. Cd-# Return to the download directory
  11.  
  12. Music jdk-7u5-linux-i586.tar.gz ~ /Software/jdk/
  13.  
  14. Music eclipse-jee-indigo-SR2-linux-gtk.tar.gz ~ /Software/eclipse_java
  15.  
  16. Music eclipse-cpp-indigo-SR2-incubation-linux-gtk.tar.gz ~ /Software/eclipse_c
  17.  
  18. Cd-
  19.  
  20. Cd jdk
  21.  
  22. Tar-zxvf jdk-7u5-linux-i586.tar.gz
  23.  
  24. Cd ../eclipse_c
  25.  
  26. Tar-zxvf eclipse-cpp-indigo-SR2-incubation-linux-gtk.tar.gz
  27.  
  28. Cd ../eclipse_java
  29.  
  30. Tar-zxvf eclipse-jee-indigo-SR2-linux-gtk.tar.gz
  31.  
  32. Vi ~ /. Cshrc # assume that you are using cshell.
  33.  
  34. # Add a few lines
  35.  
  36. Setenv JAVA_HOME ~ /Software/jdk/jdk1.7.0 _ 04
  37.  
  38. Alias eclipse_c ~ /Software/eclipse_c/eclipse-vm $ JAVA_HOME/bin/java
  39.  
  40. Alias eclipse_java ~ /Software/eclipse_java-vm $ JAVA_HOME/bin/java
  41.  
  42. Setenv PATH ~ /Software/jdk/jdk1.7.0 _ 04/bin: $ PATH
  43.  
  44. : Wq # exit vi
  45.  
  46. Source ~ /. Cshrc
  47.  
  48. # Test:
  49.  
  50. Eclipse_c &
  51.  
  52. Eclipse_java &#
  53.  
  54. Jps # Check the java Process
  55.  
  56. # The following are the display results on my machine.
  57. 5213 org. eclipse. equinox. launcher_1.2.0.v20110502.jar
  58. Jps 5315
  59. 5233 org. eclipse. equinox. launcher_1.2.0.v20110502.jar

 

This article from "believe and love" blog, please be sure to keep this source http://hipercomer.blog.51cto.com/4415661/901037

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.