In this tutorial you will learn how to install the latest version of Eclipse IDE for C/C++ Developers on Ubuntu 20.04 focal fossa Linux Desktop.
In this tutorial you will learn:
- How to install Eclipse IDE prerequisites
- How to download Eclipse IDE for C/C++ Developers
- How to extract Eclipse IDE for C/C++ Developers package
- How to launch Eclipse IDE
- How to create Eclipse IDE desktop launcher
π Eclipse IDE for C/C++ Developers on Ubuntu 20.04
Eclipse IDE for C/C++ Developers on Ubuntu 20.04
Software Requirements and Conventions Used
| Category | Requirements, Conventions or Software Version Used |
|---|---|
| System | Installed or upgraded Ubuntu 20.04 Focal Fossa |
| Software | Eclipse IDE for C/C++ Developers |
| Other | Privileged access to your Linux system as root or via the sudo command. |
| Conventions |
# β requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command$ β requires given linux commands to be executed as a regular non-privileged user |
Eclipse IDE for C/C++ Developers installation on Ubuntu 20.04 step by step instructions
- Eclipse IDE requires Java JRE as a prerequisite. Therefore, our first step is to install
default-jrepackage. To do so run the bellow command:$ sudo apt install default-jre
Furthermore, confirm that your system has G++ the C++ compilers installed.
-
π download the 64-bit Eclipse IDE for C/C++ Developers package
Navigate to the official Eclipse website and download the 64-bit Eclipse IDE for C/C++ Developers package. - Extract the Eclipse package downloaded in the previous step. Here we assume that the package has been downloaded into the
Downloadsdirectory.Extract the package into the
/optdirectory:$ sudo tar xf eclipse-cpp-2019-12-R-linux-gtk-x86_64.tar.gz -C /opt
Once the package has been extracted create a symbolic link to the
/opt/eclipse/eclipseexecutable binary:$ sudo ln -s /opt/eclipse/eclipse /usr/local/bin/
π Extract Eclipse IDE package and link to executable binary
Extract Eclipse IDE package and link to executable binaryFrom now on you should be able to start the Eclipse IDE simply by execution of the bellow command:
$ eclipse
π Start Eclipse IDE for C/C++ Developers from command line
Start Eclipse IDE for C/C++ Developers from command line - (optional) Create Eclipse IDE for C/C++ Developers desktop launcher. As an administrator create a new file called
/usr/share/applications/eclipse.desktopusing any text editor eg.nano:$ sudo nano /usr/share/applications/eclipse.desktop
and insert the following code:
[Desktop Entry] Version = 2019β12 Type = Application Terminal = false Name = Eclipse C/C++ Exec = /usr/local/bin/eclipse Icon = /opt/eclipse/icon.xpm Categories = Application;π start the the Eclipse IDE
Once the Eclipse IDE desktop launcher is ready you can start the the Eclipse IDE by searching the top leftActivitiesmenu. -
π Eclipse IDE for C/C++ Developers application select your work space
Once you start the Eclipse IDE for C/C++ Developers application select your work space.
π create a new C/C++ project
Navigate toFile-->New-->C/C++ Projectto create a new C/C++ project.
