Ubuntu – Installing Eclipse IDEs for Java and C/C++

14.04ceclipsejavasoftware installation

I'm running an Ubuntu 14.04 and want to install the Eclipse IDE for both Java and C/C++ programming. I installed the separate installation files from their official website. I followed this thread here. (The top answer)

The steps helped me install the Java IDE but I don't know what changes I should make to the procedure to install the C/C++ IDE.

Another thread here, recommended to install eclipse-cdt but the Eclipse version installed is outdated. (Doesn't allow me to install Pydev)

I have TWO questions:

  1. Can the C/C++ libraries be downloaded from within eclipse, like Pydev?

  2. If not, how do I install both IDEs without interfering with each other?

P.S. I commented this query in the first thread but got no reply, that is why I'm asking a fresh question!

Best Answer

  • Your first question

    No, you can't download the C/C++ libraries from within eclipse, like Pydev.


    Your second question

    1. Install Eclipse JEE and Eclipse C/C++ in separate folders in /opt eg:

      /opt/eclipse-cpp
      /opt/eclipse-jee
      
    2. Create two different desktop files in ~/.local/share/applications

      • ~/.local/share/applications/eclipse_cpp.desktop

        [Desktop Entry]
        Encoding=UTF-8
        Version=1.0
        Type=Application
        Name=Eclipse C++
        Comment=Eclipse Integrated Development Environment
        Icon=eclipse
        Exec=/opt/eclipse-cpp/eclipse
        StartupNotify=true
        StartupWMClass=Eclipse-CPP
        
      • ~/.local/share/applications/eclipse_jee.desktop

        [Desktop Entry]
        Encoding=UTF-8
        Version=1.0
        Type=Application
        Name=Eclipse JEE
        Comment=Eclipse Integrated Development Environment
        Icon=eclipse
        Exec=/opt/eclipse-jee/eclipse
        StartupNotify=true
        StartupWMClass=Eclipse-Java
        
    3. During the first start of both Eclipse distributions, select a different workspace folder for each of them, eg

      workspace-cpp
      workspace-jee
      

      Alternatively you can change the workspace folder in Eclipse itself via File > Switch Workspace

    Now you can use both distributions in parallel.

    enter image description here

  • Related Question