Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332380 - Launching Eclipse C++ IDE (CDT) results in Java IDE (JDT) [Co-installation problem]
Summary: Launching Eclipse C++ IDE (CDT) results in Java IDE (JDT) [Co-installation pr...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-11 19:34 EST by Jeffrey Walton CLA
Modified: 2010-12-13 10:03 EST (History)
1 user (show)

See Also:


Attachments
Java IDE from Eclipse C++ Launch (58.92 KB, image/x-png)
2010-12-11 19:36 EST, Jeffrey Walton CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Walton CLA 2010-12-11 19:34:57 EST
Build Identifier: Version: Helios Service Release 1, Build id: 20100917-0705

After downloading both the CDT and JDT, each were unpacked unquely (for example, folders eclipse-cpp and eclipse-java). I tested each by launching eclipse.exe with in each folder. No tweaks were made to either installation - this is stock out-of the-box.

Launching the C++ IDE results in the Java IDE running. To ensure I did not cross wires, I performed the download/unpack/launch a second time.

The IDE is clearly JAVA. See attached.

Java and C++ development co-installations or side-by-side installations seem like a common case. In my particular case (I realize the world does not revolve around me), I need an Android C/C++ shared object (crypto and image processing) coupled with a Android Java program (GUI).

Finally, I'm new to Eclispe, so if I have missed something, please accept my apologies. I did try to RTFM at http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/heliossr1 and http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/heliossr1.

Reproducible: Always

Steps to Reproduce:
1. Download and unpack JDT. Unpack to a unique name.
2. Download and unpack CDT. Unpack to a unique name.
3. Run eclipse.exe from JDT unpack location. Take all default settings.
3. Run eclipse.exe from CDT unpack location. Take all default settings.
Comment 1 Jeffrey Walton CLA 2010-12-11 19:36:11 EST
Created attachment 185027 [details]
Java IDE from Eclipse C++ Launch
Comment 2 Marc-André Laperle CLA 2010-12-12 23:39:34 EST
It looks like you are using the same workspace with both installations. When you open the same workspace with C/C++, it tries to open in the last perspective which is Java, but you don't have the Java plugins in this installation (notice the < > in <Java> perspective). 

Unless you really want to separate the two installations, I suggest that you use the Java package and install CDT from the Helios update site, in Help > Install new software, work with: Helios. Under Programming Languages, check C/C++ Dev tools. You could also do it the other way around, install the CDT package, then install JDT from Help, etc.
Comment 3 Jeffrey Walton CLA 2010-12-13 10:03:57 EST
> Unless you really want to separate the two installations, I suggest
> that you use the Java package and install CDT from the Helios
> update site, in Help > Install new software, work with: Helios. Under
> Programming Languages, check C/C++ Dev tools. You could also do it
> the other way around, install the CDT package, then install JDT
> from Help, etc.
Thanks Marc-Andre. Moving to a single .../eclipse/ and adding software was the trick.

I wondered how Fedora did it so gracefully. Trying to locate information on a topic with no known keywords is frustrating ("no known" due to my ignorance of the environment).

By the way, unpacking a C++ download and a Java download into the same directory has ill effects. I tried it because I did not know what I was looking for.

Jeff