Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to have CDT and Java IDE together in Eclipse?

Tags:

I have an Eclipse CDT environment up and running and customised just the way I like it. I'm also going to be heavily dealing with Java.

I don't want to install a separate version of Eclipse just to get the Java features, as I'll be switching between C -> C++ -> ADA -> Java quite often. Because of this I'd like the one IDE to support all the languages.

At the moment I've got C/C++ and Ada working together (CDT + GNAT workbench).

How can I get the Eclipse Java support installed with out installing Eclipse from scratch again?

like image 826
hhafez Avatar asked Apr 15 '10 01:04

hhafez


People also ask

Can I use Eclipse for both Java and C?

Eclipse is a platform. Install either. Then run it. Click "Help > Install New Software ..." then in the "Work with" drop down select "Neon - http://download.eclipse.org/releases/neon/", then expand "Programming Languages" and select "C/C++" or "Java" as desired.

Can I use Eclipse for both Java and Python?

First of all, there is no predefined eclipse build for python. You can simply install the "Java developer" one and then manually add python support via the eclipse marketplace, for example by installing the pydev plugin. Show activity on this post. You can go ahead with Eclipse IDE for Java EE Developers.

Does Eclipse CDT come with compiler?

Unfortunately Eclipse only provides the Integrated Development Environment (IDE) but it is missing the actual compiler. To install a compiler, please follow the instructions for your operating system.

Can you code in C in Eclipse?

Eclipse is popular for Java project development. It also supports C/C++, PHP, Python, Perl, and other web project developments via extensible plug-ins. Eclipse is cross-platform and runs under Windows, Linux and Mac OS.


1 Answers

I've had both installed together without problems. In fact I had the JDT, CDT, PyDev all working side by side sometimes I even had projects containing code from all three languages and it all worked just dandy. All the bits that were supposed to be ready for the others were provided you order your builders correctly. (I had an API implemented in C++ with support for Java, Python and C++ all in the same project).

However since you already have your set-up running just the way you want I would strongly recommend that you would backup your installation of Eclipse AND your .metadata folder in your workspace (I usually just zip the whole workspace when I tinker with Eclipse like that)

Then you can just get in your plugin manager and get the JDT plugin to install itself from the update site. Frankly I do not anticipate that you will get any problems. You can use different workspaces to separate CDT and Java but unless you really need this clear separation I would recommend that you do everything under the same workspace. Switching workspace in Eclipse pretty much means you have to launch a new instance of it with all the loading and waiting this implies.

Mixing language types in the same project might require that you tinker with the eclipse project files manually. Sometimes the gui will not offer you to have multiple aspects for the same projects. Otherwise switching from one language to the other is transparent. You can switch perspective or you can build your own perspective with just the views you want. Again there was no problem mix-matching views from CDT with views from other languages/plugins.

This is probably the biggest strength of Eclipse, Provide a unified development environment regardless of the work you are doing. This being said, not all language are supported equally, good news for you is that the Java plugin is a lot more rich and mature than the CDT.

like image 100
Newtopian Avatar answered Oct 10 '22 17:10

Newtopian