Home » Language IDEs » C / C++ IDE (CDT) » Adding CDT after downloading Eclipse for Java EE
|
Re: Adding CDT after downloading Eclipse for Java EE [message #535347 is a reply to message #535337] |
Sat, 22 May 2010 15:39 |
David Wegener Messages: 1445 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 |
No real name 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 |
David Wegener Messages: 1445 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 |
Eclipse User |
|
|
|
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 #535468 is a reply to message #535446] |
Sun, 23 May 2010 20:53 |
No real name 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?
|
|
|
Goto Forum:
Current Time: Tue Apr 23 06:14:01 GMT 2024
Powered by FUDForum. Page generated in 0.03444 seconds
|