Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I parse both Java and C++ in Eclipse?

Tags:

On the Eclipse homepage, I see two versions -- Eclipse for C++ developers and Eclipse for Java developers. I'm working on a project that combines both Java and native C++ code. I am using the Java version, and when I open one of the C++ files, not only is it not parsed, but it opens the file in an external editor. I'm probably missing something simple, but how do I get Eclipse to work with both types of source files? Is there a combined Eclipse package for this? Thanks.

like image 642
Phillip Avatar asked Nov 17 '11 22:11

Phillip


People also ask

How can I use both Java and C on Eclipse?

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 Eclipse run both Java C++?

Eclipse is a popular integrated development environment (IDE) for developing Java and C++ applications. You can install plugins that provide special features for specialized development frameworks, such as ANTLR 4.

Does Eclipse support multiple languages?

Eclipse is one of the most popular IDEs for coding in Java, but, as it turns out, it can be used for different languages, including C, C++, and even Python!

Does Eclipse support C language?

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.


2 Answers

Eclipse is fully plugin based. Just go to Help -> Install new Software and select the Indigo (or whatever version you are using) update site. Then go to Programming languages and select the C/C++ tools you want to install. The different downloads from the Eclipse website are basically just preconfigured plugin bundles and you can always add anything you are missing from the plugin manager.

like image 166
Daff Avatar answered Sep 18 '22 13:09

Daff


You can install the missing functionality with adding the appropriate plugins.

http://eclipse.org/cdt/

like image 30
Udo Held Avatar answered Sep 19 '22 13:09

Udo Held