C, C++ and Java IDE for Ubuntu

22,039

Solution 1

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/

Solution 2

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

Solution 3

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.

Solution 4

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.

Share:
22,039
CH325
Author by

CH325

Updated on September 18, 2022

Comments

  • CH325
    CH325 over 1 year

    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?

    • Kevin
      Kevin over 7 years
      "get NetBeans with all packages". How is this even a question? Their download page clearly shows a complete package (the right most download button)
    • Apologician
      Apologician over 6 years
      @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.
  • CH325
    CH325 over 7 years
    How to install on Ubuntu?
  • A. Bergeron
    A. Bergeron over 7 years
    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
  • Apologician
    Apologician over 7 years
    Thanks for the valuable information. It sounds like Microsoft is starting to recognize/endorse Linux.!
  • Apologician
    Apologician over 7 years
    @CH325 You can install Code Blocks from the repository with: sudo apt install clodeblocks. It also has support for C, C++ and Java.
  • EMBLEM
    EMBLEM over 7 years
    @L.D.James On, the, contrary, also this.
  • Honinbo Shusaku
    Honinbo Shusaku over 7 years
    @EMBLEM The Lenovo gaffe was Microsoft's fault?
  • Shautieh
    Shautieh over 7 years
    @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.
  • EMBLEM
    EMBLEM over 7 years
    @Shautieh But the only binaries they provide are proprietary. The other links show that Microsoft very much opposes us.
  • Shautieh
    Shautieh over 7 years
    @EMBLEM github.com/Microsoft/vscode/wiki/… <- is this not good enough? I don't like Microsoft so much, and won't use Windows nor Office unless I really have to, but VS Code is one of the best editors (among open and closed source) available on Linux IMHO. I had been using Lighttable in the recent past, but as the project seemed dead I tested VS Code and was relieved to see it would be a good replacement. All the other editors I have tested were so-so (Code::Blocks, Netbeans) or just plain bad (Eclipse, Brackets, Atom, Geany, ...).
  • Luís de Sousa
    Luís de Sousa over 7 years
    Installing Eclipse from the Software Centre is a very bad idea.
  • Apologician
    Apologician over 7 years
    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.
  • Apologician
    Apologician over 7 years
    @LuísdeSousa I felt discussing the bugs and fixes in the answer might have been a distraction for a new user.
  • Luís de Sousa
    Luís de Sousa over 7 years
    Eclipse Neon works out of the box on Ubuntu 16.04. Detailed install instructions can be found in this answer.
  • Apologician
    Apologician over 7 years
    @LuísdeSousa The thread you linked was an answer provided 3 years ago when the users were running openjdk-6-jdk. It's polished over the years as things develop. I give lots of support on eclipse.or to users. I've been helping them to deal with problems that happens when a new version is release (bugs.launchpad.net/ubuntu/+source/java-common/+bug/1552764/‌​…). At present most of the bugs have been resolved from Neon. But just as there was problems with the initial Neon release, there will be problems with the next.
  • Apologician
    Apologician over 7 years
    I gave the users a number of alternatives including the latest version. He didn't ask for ecplise. He wanted a C++ compiler, which the single line sudo apt install eclipse provided. The other items I included for the OP included a search of the software center. Something that I consider valuable to new users. I didn't want to overwhelm the user too much with all the steps needed tar package install. His next question might have been how to deal with a tar. But again, I provided him with a link to the tar package that he could explore on his own if he likes eclipse.
  • Apologician
    Apologician over 7 years
    By the way, if you read this full Q&A you might recognize the OP was having problems with Netbeans, which works on Ubuntu just as well as Eclipse (though not my choice). If I were going to go through the process of working with a tar install, I probably would have spent the time helping him with Netbeans. I tried to make easy for the OP. He also has other answers (of course including mine) that points to the latest version of Eclipse. By the way, having both the tarball version and the repo version installed isn't a conflict.