2

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!

gary
  • 4,227
  • 3
  • 31
  • 58
parsifal
  • 879
  • 4
  • 12
  • 21
  • what distributive do you have? – zaynyatyi Sep 16 '10 at 11:52
  • @parsifal Initially unable to include more than one link in my answer so saved the detailed info with links as a private blogpost. Now I'm able to include more links so moved the detailed answer here for any other readers to access directly. If you feel it solves your problem you can accept my answer. – GuruM Nov 25 '11 at 05:38

3 Answers3

6

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
  • 39,212
  • 14
  • 67
  • 75
  • Much more detailed answer than mine, +1. – VonC Sep 16 '10 at 12:09
  • 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 Sep 16 '10 at 12:20
  • @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 Sep 16 '10 at 12:59
  • Hi Meyer, i use Ubuntu 10.04 LTS -the Lucid Lynx. – parsifal Sep 25 '10 at 02:55
  • and I have already installed openjdk,thanks all the same: )one of the problem is my cache is not large enough. – parsifal Sep 25 '10 at 05:58
1

You can:

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
1

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

A) Eclipse IDE for C/C++ Developers, 87 MB without LinuxTools
B) Eclipse IDE for C/C++ Linux Developers, 120 MB with inbuilt LinuxTools like valgrind, gprof, systemtap etc.
C) Installing/Updating LinuxTools using UpdateManager (Note: You may need to do a Java6 JRE update as described below first.)
D) Updating Eclipse Helios CDT with UpdateManager
E) Helios Installation how-to
F) Java6 JRE update:
apt-get install sun-java6-jre G) Unzip the Eclipse tarball and run the eclipse binary from inside the tarball:
tar -zxf eclipse-cpp-helios-linux-gtk.tar.gz && ./eclipse
For related info click here

GuruM
  • 865
  • 11
  • 20
  • 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 Sep 21 '10 at 06:23
  • 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 Sep 21 '10 at 10:45