Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Adding CDT after downloading Eclipse for Java EE
Adding CDT after downloading Eclipse for Java EE [message #535337] Sat, 22 May 2010 14:31 Go to next message
No real name is currently offline No real nameFriend
Messages: 6
Registered: May 2010
Junior Member
I downloaded Eclipse for Java EE/Web development.

I then tried to select the CDT support from the update manager.

The update manager indicated that the CDT features had successfully downloaded and installed, and asked me to restart Eclipse.

However, there is no C/C++ perspective available, and I can't access any of the other features I would expect, e.g. creating a C project.

If I download the Eclipse CDT bundle, then I can use those features immediately. However, now I have both the Java EE bundle in /opt/eclipse and I have the CDT bundle in /opt/eclipse-cdt. This wastes disk space and it makes it impossible for me to have both C and Java projects in the same workspace.

Is it possible create a combined Java EE and C bundle somehow, and have both Java and C projects in a single workspace? Or should this be avoided?
Re: Adding CDT after downloading Eclipse for Java EE [message #535347 is a reply to message #535337] Sat, 22 May 2010 15:39 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1442
Registered: July 2009
Senior Member
On Sat, 2010-05-22 at 10:31 -0400, daniel@pocock.com.au wrote:
> I downloaded Eclipse for Java EE/Web development.
>
> I then tried to select the CDT support from the update manager.
>
> The update manager indicated that the CDT features had successfully downloaded and installed, and asked me to restart Eclipse.
>
> However, there is no C/C++ perspective available, and I can't access any of the other features I would expect, e.g. creating a C project.
>
> If I download the Eclipse CDT bundle, then I can use those features immediately. However, now I have both the Java EE bundle in /opt/eclipse and I have the CDT bundle in /opt/eclipse-cdt. This wastes disk space and it makes it impossible for me to have both C and Java projects in the same workspace.
>
> Is it possible create a combined Java EE and C bundle somehow, and have both Java and C projects in a single workspace? Or should this be avoided?

Yes, this configuration is possible. You might need to give some more
information about how you got to where you are (OS, download and install
method). You mention that Eclipse is installed in /opt. I'm assuming
that you are installing on a Linux system. If this is correct, were did
you get Eclipse.

If you installed from your distributions repositories, I would suggest
that you uninstall those versions and download directly from the
Eclipse.org web site. Distribution versions seem to have problems when
you try to update through the Eclipse update mechanism. I would suggest
downloading the Java EE version. Extract the archive to your system.
Now use the Help->Install new software to install the CDT feature.
Re: Adding CDT after downloading Eclipse for Java EE [message #535348 is a reply to message #535347] Sat, 22 May 2010 16:03 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 6
Registered: May 2010
Junior Member

I am using:
- 64 bit Debian Linux v5 (lenny)
- Sun's Java 6 installed in /opt/jdk1.6 for 64 bit
- Eclipse bundles for Java EE and C/C++ downloaded directly from http://www.eclipse.org/downloads/

To start Eclipse, I am currently using these aliases:

alias eclipse='/opt/eclipse/eclipse -vm /opt/jdk1.6/bin/java'
alias eclipse-cdt='/opt/eclipse-cdt/eclipse -vm /opt/jdk1.6/bin/java'

The Eclipse binaries are the 64 bit versions:

$ file /opt/eclipse/eclipse
/opt/eclipse/eclipse: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped

$ file /opt/eclipse-cdt/eclipse
/opt/eclipse-cdt/eclipse: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped

Re: Adding CDT after downloading Eclipse for Java EE [message #535359 is a reply to message #535348] Sat, 22 May 2010 18:10 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1442
Registered: July 2009
Senior Member
On Sat, 2010-05-22 at 12:03 -0400, daniel@pocock.com.au wrote:
> I am using:
> - 64 bit Debian Linux v5 (lenny)
> - Sun's Java 6 installed in /opt/jdk1.6 for 64 bit
> - Eclipse bundles for Java EE and C/C++ downloaded directly from http://www.eclipse.org/downloads/
>
> To start Eclipse, I am currently using these aliases:
>
> alias eclipse='/opt/eclipse/eclipse -vm /opt/jdk1.6/bin/java'
> alias eclipse-cdt='/opt/eclipse-cdt/eclipse -vm /opt/jdk1.6/bin/java'
>
> The Eclipse binaries are the 64 bit versions:
>
> $ file /opt/eclipse/eclipse
> /opt/eclipse/eclipse: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped
>
> $ file /opt/eclipse-cdt/eclipse
> /opt/eclipse-cdt/eclipse: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped
>
>

Start the Eclipse version where C++ isn't working and go to the
Help->About Eclipse. Click on the Installation Details button and check
to see if Eclipse C/C++ is listed in Installed Software. If not, then
the installation wasn't successful.

Open up the .log file for you workspace and see if it gives you any
information about problems resolving plugin dependencies.
Re: Adding CDT after downloading Eclipse for Java EE [message #535386 is a reply to message #535337] Sat, 22 May 2010 23:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kgold.watson.ibm.com

daniel@pocock.com.au wrote:
> I downloaded Eclipse for Java EE/Web development.
>
> I then tried to select the CDT support from the update manager.
>
> The update manager indicated that the CDT features had successfully
> downloaded and installed, and asked me to restart Eclipse.
>
> However, there is no C/C++ perspective available, and I can't access
> any of the other features I would expect, e.g. creating a C project.
>
> If I download the Eclipse CDT bundle, then I can use those features
> immediately. However, now I have both the Java EE bundle in
> /opt/eclipse and I have the CDT bundle in /opt/eclipse-cdt. This
> wastes disk space and it makes it impossible for me to have both C
> and Java projects in the same workspace.
>
> Is it possible create a combined Java EE and C bundle somehow, and
> have both Java and C projects in a single workspace? Or should this
> be avoided?

My experience is that it's possible but really hard. I did it but it
took days of googling.

The issue seems to be lack of backward compatibility, so you have to get
just the right versions of Eclipse, the Java plug-in, and the CDT plug-in.

If you're on Windows, I'd start with CDT, because it's also sensitive to
the version of mingw and gdb.

(With disk space being so cheap, I wish someone would just create a
package with Eclipse and the compatible plug-ins.)
Re: Adding CDT after downloading Eclipse for Java EE [message #535404 is a reply to message #535386] Sun, 23 May 2010 08:30 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 6
Registered: May 2010
Junior Member

In addition to disk space, there are two other concerns I have about multiple bundles on the same machine.

The first concern is ~/.eclipse, and whether different versions (or even instances of the same version) can share that directory safely.

It appears that each bundle is a slightly different version and has created a subdirectory of it's own under ~/.eclipse, so maybe this isn't a worry:

$ ls .eclipse/
org.eclipse.platform_3.5.0_1473617060
org.eclipse.platform_3.5.0_77116862

The other concern is the .metadata directory in a workspace. If I access the workspace with a different Eclipse bundle, having a different set of plugins, am I asking for trouble?
Re: Adding CDT after downloading Eclipse for Java EE [message #535406 is a reply to message #535404] Sun, 23 May 2010 08:42 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 6
Registered: May 2010
Junior Member


I ran the Java bundle, in the `Installed Software' tab I have both `Eclipse C/C++ Development Tools' and `Eclipse IDE for Java EE Developers'

I looked at workspace/.metadata/.log, the last message there is from April, nothing suggesting a dependency problem.

Re: Adding CDT after downloading Eclipse for Java EE [message #535407 is a reply to message #535386] Sun, 23 May 2010 08:44 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 6
Registered: May 2010
Junior Member

If this really isn't an easily supported configuration at the moment, or if it depends on precise plugin versions, then maybe there needs to be some warning/disclaimer on the CDT page or the bundle download page so that users won't lose time on it until it works well?
Re: Adding CDT after downloading Eclipse for Java EE [message #535446 is a reply to message #535407] Sun, 23 May 2010 16:52 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1442
Registered: July 2009
Senior Member
On Sun, 2010-05-23 at 04:44 -0400, daniel@pocock.com.au wrote:
> If this really isn't an easily supported configuration at the moment, or if it depends on precise plugin versions, then maybe there needs to be some warning/disclaimer on the CDT page or the bundle download page so that users won't lose time on it until it works well?

I just ran through the process of downloading the JEE version of Eclipse
and adding the C/C++ Development and it worked. I noticed that you
mentioned that you installed Eclipse into /opt. I did the same
(normally, I install into my home directory).

One thing I noticed was that the default set of Update Sites weren't
showing up. What update site did you use to pull down the C++
development tools? The Galileo update site includes the version of the
C++ tools that are compatible with the Galileo JEE release.

The following procedure worked for me.

Download JEE version of Eclipse Galileo
( http://www.eclipse.org/downloads/download.php?file=/technolo gy/epp/downloads/release/galileo/SR2/eclipse-jee-galileo-SR2 -linux-gtk-x86_64.tar.gz)
Note that I'm running a 64 bit system and have a 64 bit JDK installed
so I am pulling down the 64 bit version.

Extract to the /opt directory: cd /opt; sudo tar -xvf {path to tar
file}.

Run Eclipse: /opt/eclipse/eclipse -vm {path to java}

Open up Help->Install New Software

If the Work with drop down doesn't include the Galileo update site, add
it: http://download.eclipse.org/releases/galileo

Open up Programming Languages and select: Eclipse C/C++ Development
Tools. Click Next and accept License Agreement.

Follow onscreen instructions. Make sure that you accept the certificate
by clicking the box next to the Eclipse C/C++ Development Tools on the
certificate display screen.

When prompted to restart Eclipse, select Yes.

When Eclipse comes back up, you should have the C++ tools installed.
Open the C++ perspective by going to Window->Open Perspective->Other. C
++ should be at the top of the list.
Re: Adding CDT after downloading Eclipse for Java EE [message #535468 is a reply to message #535446] Sun, 23 May 2010 20:53 Go to previous message
No real name is currently offline No real nameFriend
Messages: 6
Registered: May 2010
Junior Member

That basically sounds like exactly what I did, with a few small differences:

- As you point out, I am using /opt, while you use your home directory - I should observe that I unpack everything under /opt as root, and I run it using my own user ID

- I did see the default set of update sites

- My Eclipse for JEE bundle was downloaded and installed about 1 month ago

- When I added CDT with the update manager, it also updated some other Eclipse components

- I did see license info, but I never saw any window about certificates

- It did say the process completed successfully, it asked me if I would like to restart, and I accepted the restart

I will try the whole process again, maybe it was just some one-off glitch, or maybe something strange about the bundle I downloaded in April not working with the current CDT?
Previous Topic:Adding resources to exe file
Next Topic:MinGW gcc not found
Goto Forum:
  


Current Time: Wed Sep 28 13:10:58 GMT 2022

Powered by FUDForum. Page generated in 0.02469 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top