Ubuntu – How to install Eclipse C/C++ in Ubuntu 18.04

ceclipseeclipse-cdtsoftware installation

To clean install Eclipse for C/C++ on Ubuntu 18.04 I tried sudo apt install eclipse eclipse-cdt. It's showing an error, see the log file….

log file.....
!SESSION Fri Aug 16 14:39:20 IST 2019 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2019-08-16 14:39:20.065
!MESSAGE Exception launching the Eclipse Platform:
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
    at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

Best Answer

Open the terminal and type:

sudo apt update  
sudo apt install ubuntu-make g++
umake ide eclipse-cpp

To launch Eclipse click the Eclipse CPP icon in the Dash or launch Eclipse CPP from the terminal with the following command:


On the first launch, you'll be asked to select the workspace directory. The default workspace directory should work just fine.

Cevelop is a free C++ IDE for professional developers which is based on Eclipse. Cevelop extends Eclipse CDT with many additional features: CUTE unit testing with Test Driven Development support, new refactorings and quick fixes, and much more.

To install Cevelop in all currently supported versions of Ubuntu open the terminal and type:

sudo snap install cevelop --beta --classic