4.1.1. Installing the Mars Eclipse IDE

Follow these steps to locate, install, and configure Mars Eclipse:

  1. Locate the Mars Download: Open a browser and go to http://www.eclipse.org/mars/.

  2. Download the Tarball: Click the "Download" button and then use the "Linux for Eclipse IDE for C++ Developers" appropriate for your development system (e.g. 64-bit under Linux for Eclipse IDE for C++ Developers if your development system is a Linux 64-bit machine.

  3. Unpack the Tarball: Move to a clean directory and unpack the tarball. Here is an example:

         $ cd ~
         $ tar -xzvf ~/Downloads/eclipse-cpp-mars-2-linux-gtk-x86_64.tar.gz
                            

    Everything unpacks into a folder named "Eclipse".

  4. Launch Eclipse: Double click the "Eclipse" file in the folder to launch Eclipse.

    Note

    If you experience a NullPointer Exception after launch Eclipse or the debugger from within Eclipse, try adding the following to your eclipse.ini file, which is located in the directory in which you unpacked the Eclipse tar file:
         --launcher.GTK_version
         2
                                
    Alternatively, you can export the SWT_GTK variable in your shell as follows:
         $ export SWT_GTK3=0