7

This question already has an answer here:

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?

marked as duplicate by karel, dobey, chaskes, αғsнιη, Zanna Sep 27 '16 at 8:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    "get NetBeans with all packages". How is this even a question? Their download page clearly shows a complete package (the right most download button) – Kevin Sep 27 '16 at 6:49
  • @Kevin The user's confusion appears clear to me. He asked the question because he didn't understand the aa packages option of Netbeans. He most likely thought he was configuring the IDE by specifically installing the CC++ development package (confusing this with the IDE support needed). Your comment might have been a sufficient answer to get him on his way with Netbeans. I provided him with an alternative to Netbeans (one I'm more familiar with), as the second part of his question. Of course, Eclipse comes in packages to and will need the CC++ support installed also. – L. D. James Nov 20 '17 at 14:31
11

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/

  • 2
    +1 for eclipse though I would recommend installing the current version from the website eclipse.org/downloads – kalenpw Sep 26 '16 at 20:42
  • Installing Eclipse from the Software Centre is a very bad idea. – Luís de Sousa Oct 12 '16 at 8:48
  • Please notice that I gave the user the link to the latest eclipse. I replace most of the applications I use with sources from the developers. I don't suggest that to every user who is starting out, but this is something that I'm sure most people do for applications they link. I gave the tested repository as a starting point. In this case, the most recent version doesn't work with 16.04 without tweaking out the gtk bug. The tested repository works straight out of the box. It usually takes about a year to get the bugs out of the newest versions. – L. D. James Oct 12 '16 at 8:56
  • @LuísdeSousa I felt discussing the bugs and fixes in the answer might have been a distraction for a new user. – L. D. James Oct 12 '16 at 8:58
  • Eclipse Neon works out of the box on Ubuntu 16.04. Detailed install instructions can be found in this answer. – Luís de Sousa Oct 12 '16 at 11:53
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

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
    Thanks for the valuable information. It sounds like Microsoft is starting to recognize/endorse Linux.! – L. D. James Sep 26 '16 at 17:59
  • @L.D.James - Notice how even the screenshot is from Ubuntu... – Android Dev Sep 26 '16 at 18:03
  • 1
    @L.D.James On, the, contrary, also this. – EMBLEM Sep 26 '16 at 18:09
  • 1
    @EMBLEM The Lenovo gaffe was Microsoft's fault? – Abdul Sep 26 '16 at 18:28
  • @EMBLEM Visual Studio Code has been open sourced with an MIT licence and the code is available on github. The subject not being "Microsoft" but VS Code, I don't see how the other links are helpful in any way. – Shautieh Sep 27 '16 at 6:37
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.

  • How to install on Ubuntu? – CH325 Sep 26 '16 at 17:44
  • It has downloads available for linux, both 32-bit and 64-bit. Follow the proper link until you reach the ppa, which you can add to your software center in order to access the program. It's really quick and easy. codeblocks.org/downloads/26 – A. Bergeron Sep 26 '16 at 17:48
  • @CH325 You can install Code Blocks from the repository with: sudo apt install clodeblocks. It also has support for C, C++ and Java. – L. D. James Sep 26 '16 at 18:06
-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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.