Pages

How To Install Eclipse In Ubuntu 11.04 Natty Narwhal?

Eclipse is the paradise of a modern programmer :). It's an IDE or Integrated development environment in which as a programmer you'll find ...

*. A compiler.

*. Code editor.

*. Debugging tool/s.

*. Various programming tools...


...mainly.

By default it supports a lot of major programming languages such as Java, C/C++, Perl, Python and a lot more. Now since it's an "environment", with help of certain plugins you can even easily use the Qt (the default GUI builder in KDE) as well. With the help of this amazing programming framework, which enables different types of languages to interact with each other... a programmer can built an entire OS if he/she desires.

If you use Ubuntu 11.04 Natty Narwhal and thinking of a way to install Eclipse... then open your Terminal and issue the below command to install Java on Ubuntu (if you haven't already)..
sudo apt-add-repository "deb http://archive.canonical.com/ natty partner"
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
Now enter the below command to install Eclipse.
sudo apt-get install eclipse eclipse-cdt eclipse-JDT 
Once installed you should be able access it via - "Application" -> "Developer Tools".

7 comments:

stephan said...

I think you mean Perl, not Pearl ;-)

Gayan said...

@Stephan,

Oops, embarrassing mistake :). Thanks, corrected it.

Anonymous said...

I didn't get one thing.
why 'eclipse-cdt eclipse-JDT' needed in command of apt-get though there is eclipse. is 'apt-get install eclipse' is not sufficient

Gayan said...

@Anonymous,

Well, I'm not a programmer but... Eclipse is a "platform". So that's what gets installed when we use the above command.

So if you want to deal with different types of programming languages such as C/C++, Java, etc then you have to install the appropriate " Eclipse plug-ins" separately which enable those programming languages, as far as I know, anyway. Hope it helped to clear few doubts :/.

Anonymous said...

the problem with installing it by apt-get is that even today you get the older galileo version, when the last version is indigo (3.7). The best way to get the most updated version is to download the archive form the eclipse page and unpack it in some directory.

Aldi said...

Isnt there another way to update?
Anyway Im a beginner too, so i guess i can use it for awhile.. when i get skills.. ill look for a newer version..
Thanks!!

Gayan said...

@Aldi,

Well, as you can see in the previous comment, you can get the latest version by downloading it from their official website but I haven't done it... so not sure how it works (they don't seem to have prebuilds/deb which would be pretty easy otherwise)... if interested then follow the below link

http://www.eclipse.org/downloads/

good luck

Post a Comment