Java and C Eclipse

Gamingphreek

Lifer
Mar 31, 2003
11,679
0
81
I just downloaded Eclipse Ganymede in Ubuntu. I downloaded the C/C++ version, but I have a class that is Java oriented and a class that is C oriented so I need the IDE to do both. Can someone explain what I need to do to get both languages working within Eclipse?

Thanks,
-Kevin
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Do you have the CDT installed? The C/C++ Development Tooling add-on contains everything Eclipse needs to deal with C/C++ using... GCC I think, but I am sure that's customizable. Once you have it then you'll see a C/C++ perspective available as well as Java.
 

Gamingphreek

Lifer
Mar 31, 2003
11,679
0
81
Well I downloaded the Eclipse with the CDT I believe. I got the version with C/C++ and can use that (I assume at least). I need to add Java support now.
 
Sep 29, 2004
18,656
68
91
Originally posted by: Gamingphreek
Well I downloaded the Eclipse with the CDT I believe. I got the version with C/C++ and can use that (I assume at least). I need to add Java support now.

Why not just download the java version of eclipse and install it in a different directory. That's what I did.

To compile C/C++ code in Eclipse, you'll need to get cygwin.

And if you don't know makefiles yet, it is time to start learning.
 

Gamingphreek

Lifer
Mar 31, 2003
11,679
0
81
So installing the Java version would be the best route? It just seems weird to me to have 2 separate versions of the same software - the only difference being some modules or something.

-Kevin
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
You definitely don't need two copies of Eclipse. I use one and have both Java and C/C++ perspectives available. I'm pretty sure all you need to do is install the Ganymede package and CDT, and cygwin if you're on Windows.
 

slpaulson

Diamond Member
Jun 5, 2000
4,414
14
81
All you have to do is change the perspective to switch between C and Java. I switch between Java, C++, and C for our embedded platform with one installation just fine.
 

postmortemIA

Diamond Member
Jul 11, 2006
7,721
40
91
all you need to install is full Netbeans 6.1, it comes with java and C++ support - no switching, no additional packages hidden in updates
NetBeans, best Java IDE

also you'd need cygwin or minGW in either case