7

Is there an IDE which can run on Ubuntu that supports C, C++ and Java? I installed NetBeans, but it only supported Java. I installed the C/C++ package manually, but that package gives an error if I include iostream.

Is there any other IDE which can satisfy my needs? Or can I get NetBeans with all packages pre-installed in it?

edwinksl
  • 24,109
CH325
  • 130

5 Answers5

12

There's Eclipse available from the repository. You can install it with:

$ sudo apt install eclipse

Or by the GUI Search of the Ubuntu Software center. A search of the word "IDE" will bring up a significant number. You could also specify eclipse as the search criterion.

Eclipse will most likely have more of the familiar functionality and features you've used in Netbeans. It is a very powerful IDE and has support plugins for most of the popular programming languages.

The current version is available from the developers at: https://www.eclipse.org/downloads/

L. D. James
  • 25,444
9

Netbeans supports all three. You just need to configure C/C++ toolchain for that.

Check the link for a details instruction: https://netbeans.org/community/releases/80/cpp-setup-instructions.html#compilers_linux

Anwar
  • 77,855
6

Have a go with Eclipse. It is a very popular and well-supported IDE.

It supports many languages, including C/C++ and Java: enter image description here

Just click the hyperlink at the top, and download & extract the archive to a directory of your choice. To launch it, simply CD into that directory, and do: ./eclipse

Note: The current release of Eclipse requires JDK >= 8


There's also Microsoft's Visual Studio Code:

enter image description here

It also supports C/C++ and Java.

1

I do not know of one that supports all 3 languages, but Code Blocks is a great option for C/C++. Give it a try, it's very quick in my experience. You can write Java in Code Blocks...just not compile it.

-1

In eclipse you can add support of all languages I tried it. But it is better to have separate eclipse for C++ and java thus your configuration won't interfere and you can use same shortcut and things will be similar.