tags:

views:

233

answers:

3

Hi,

I am now working on a data transfer project under Linux.

The Project Team choose putty to login in linux server via vim to development, But I think the efficiency is too low.

Now I choose Eclipse for C++, and distributor the version "eclipse-cpp-helios-linux-gtk.tar.gz" on Ubuntu.

However, I encountered a problem: My Linux system should install jre1_5_0_09linuxi586, but I can not find it on web.

Can anybody help me on how to install Elipse for C++ on a cleanup linux OS?
What I need is Eclipse for C++ running gdb and compiling on IDE, thanks!

+3  A: 

Your question is difficult to understand, but if I'm reading it correctly, you're trying to install the Java Runtime Environment and Eclipse Helios for C++ on Ubuntu.

The easiest way to install the JRE is to use the packages in the "partner" repository:

Edit /etc/apt/sources.list:

sudo -e /etc/apt/sources.list

You should see a few lines that end with the word "partner." Remove the hash marks from the front of each of these lines.

deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner

Now update your package list and install the Sun Java Runtime:

sudo apt-get update
sudo apt-get install sun-java6-jre

Then you can unzip the Eclipse tarball and run the eclipse binary from inside the tarball:

tar -zxf eclipse-cpp-helios-linux-gtk.tar.gz
./eclipse
Nick Meyer
Much more detailed answer than mine, +1.
VonC
thanks ,Meyer, It sounds a good solution. But when I type "sudo apt-get install sun-java6-jre" system echo below:Package sun-java6-jre has no installation candidate.
parsifal
@parsifal, what version of Ubuntu are you using? You didn't indicate so I assumed 10.04 Lucid, since that's the most recent. You can also use `apt-cache search '^sun-java'` to list all available Sun Java packages for your distribution.
Nick Meyer
Hi Meyer, i use Ubuntu 10.04 LTS -the Lucid Lynx.
parsifal
and I have already installed openjdk,thanks all the same: )one of the problem is my cache is not large enough.
parsifal
A: 

You can:

VonC
A: 

Download page of Eclipse Helios (http://www.eclipse.org/downloads/packages) gives 2 good alternatives for C++ developers on Linux:

A) Plain Vanilla C++ CDT: Eclipse IDE for C/C++ Developers, (87 MB)

B) C++ CDT with inbuilt LinuxTools like valgrind, gprof,systemtap etc Eclipse IDE for C/C++ Linux Developers (includes Incubating components), (120 MB)

GuruM
thanks, friend, I also down from office Eclipse. My linux has no jave envioroment, So when I enter ./eclipse ,system resposes with "a jre must be available before available before running eclipse"
parsifal
You may need to do a Java (6) JRE update before you run eclipse.apt-get install sun-java6-jre. From your comment to Nick Meyer I understand that you have a problem doing this however. You can alternately try using the System->Synaptic Package Manager. I'm able to download the jre6 using this as the download repository: http://archive.canonical.com/ubuntu
GuruM
Posted my (successful) attempt at configuring Eclipse CDT with LinuxTools here: http://techtalkies.blogspot.com/2010/09/howto-install-eclipse-cdt-for-c.html. Comments are welcome
GuruM