如何在ubuntu 上安装eclipse: how to install eclipse on ubuntu

来源:互联网 发布:李世民杀兄 知乎 编辑:程序博客网 时间:2024/05/17 06:58

 

how to Install Eclipse in Ubuntu 10.04


install eclipse on ubuntu

 

Eclipse is one of the most widely used IDE(Integrated Development Environment),specially used for C/c++ and java programming.Since it is open source and available free of cost,you can install it on ubuntu 10.04 from it’s official package repositories or go to software center and Go to developer section.In developer section there is sub section IDE’s you will get eclipse listed there.Just click to install them.The more detailed explanation of the installation procedure is given below.It has very user friendly and simple graphical user interface with lot of features.Another more important point is that,you can extends its functionality by using plugins.


Install Eclipse on Ubuntu 10.04 Lucid Lynx

From Ubuntu Shell
1.Open terminal by hitting CTRL+ALT+T or from Applications->accessories->Terminal.
2.Type the command written below,you may have to enter your user account password to install the Eclipse.
$ sudo apt-get install eclipse
3.Downloading and installation process will finish soon.
4.That’s all Now,enjoy using eclipse.Access it from Applications->Programming->Eclipse.

From Ubuntu Software Center(USC) OR Synaptic Package Manager(SPM)
1.Open USC(Applications->Ubuntu Software Center) or SPM(System->Administration->Synaptic Package Manager).
2.Search for Eclipse and Mark/Check the box for installation and click apply OR click on install(In USC under developer>IDE’s) to begin the downloading and installation process.
3.It will take few minutes to complete.
4.Now access eclipse from Applications->programming->Eclipse.


original link:http://blog.sudobits.com/2010/06/02/how-to-install-eclipse-in-ubuntu-10-04/




 

How to Install and setup Eclipse with Sun’s Java



Eclipse is an open source community whose projects are focused on building an open development platform comprised of extensible frameworks, tools and runtimes for building, deploying and managing software across the lifecycle. A large and vibrant ecosystem of major technology vendors, innovative start-ups, universities, research institutions and individuals extend, complement and support the Eclipse platform.

Installing Eclipse,Sun Java in Ubuntu

sudo apt-get install eclipse sun-java6-jdk

This will install the required packages, however, Eclipse will run very slowly since it will be using GNU’s java, not Sun’s. We now need to make Sun’s java the default.

sudo update-java-alternatives -s java-6-sun

Next, edit the JVM configuration file

sudo -b gedit /etc/jvm

and add the following to the top of the file

/usr/lib/jvm/java-6-sun

There is a bug right now were Eclipse ignores Ubuntu’s java-common settings and uses its own (bug 45347). To work around the bug, you need to edit Eclipse’s java_home file

sudo -b gedit /etc/eclipse/java_home

and add

/usr/lib/jvm/java-6-sun

to the top of the file.

Lastly, if you have lots of memory you may want to increase the heap size (warning: If you make the heap size too large then parts of eclipse will continuously swap in and out.).The settings can be altered by editing the eclipse.ini file.

For feisty users:

sudo -b gedit /usr/lib/eclipse/eclipse.ini

The argument Xms refers to the minimum heap size and Xmx refers to the maximum heap size.

 


original link: http://www.ubuntugeek.com/how-to-install-and-setup-eclipse-with-suns-java.html

 

 


 

How to install Eclipse in Ubuntu.

Including Web tools, Tomcat, Sun's JDK and icons

There are many ways to do this.This is only one method, but it works.

I cant take any credit for this set up,as I have mearly gathered informationfrom my references.
As the old university excuse goes:Copy from one source is plagiarism,copy from two or more is research.

Ubuntu does come with many eclipse packages in theuniversal repositories. I dont use them as they rely on GCJ compiler,and not the genuine Sun one.Sun licenses is not compatible with Ubuntu's repositories and therefor have to seperatly downloaded. This howto creates a .deb packge from this download.

I have copied this to the Ubuntu Wiki.wiki.ubuntu.com/EclipseWebTools
The wiki is more up to date.

download software

 

        

Download the latest JDK from Sun, currenly Tiger, 1.5.
Choose the latest jdk update,and then choose the self extracting non rpm file,eg. jdk-1_5_0_06-linux-i586.bin

Download the latest release of web tools from eclipse.
I use the full package of release 1.E.g. wtp-all-in-one-sdk-1.0.2-linux-gtk.tar.gz.
(Ps. its about 170Mb so might take awhile depending of bandwidth.)

Fetch the latest apache tomcat binary,currently 5.5.15.
Choose the core tar.gz file.

Install packages

First Sun's Java JDK:

Install fakeroot and java-package to be able to repackage the jdk as a .debMake sure you have enabled the universe repositories.

sudo apt-get install fakeroot java-package

Once that is done we create the .deb jdk package.

fakeroot make-jpkg jdk-1_5_xxxx-linux-i586.bin

Some interaction is required, and there will be the odd permission error etc, but should be fine.

Then we install this new package

sudo dpkg -i sun-j2sdk1.5xxxx+updatexxx_i386.deb

Make Sun's Java your java...

sudo update-alternatives --config java

Choose the Sun JDK

Then Tomcat:

Untar download and copy to /opt

tar xzf apache-tomcat-5.5.15.tar.gz
sudo mv apache-tomcat-5.5.15 /opt/
cd /opt
sudo chown -R root:root apache-tomcat-5.5.15
sudo chmod -R +r apache-tomcat-5.5.15
sudo chmod +x `sudo find apache-tomcat-5.5.15 -type d`
sudo ln -s apache-tomcat-5.5.15 tomcat

Edit tomcat users

sudoedit /opt/tomcat/conf/tomcat-users.xml

And add an admin and your own?

<user name="admin" password="admin" roles="manager,admin" />
<user name="yourname" password="blah" roles="manager,admin" />

Then Eclipse:

Extract the eclipse download and move to opt.

tar xzf wtp-all-in-one-sdk-1.0-linux-gtk.tar.gz
sudo mv eclipse /opt/eclipsecd /optsudo chown -R root:root eclipse
sudo chmod -R +r eclipse
sudo chmod +x `sudo find eclipse -type d`

Then create an eclipse executable in your path

sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudoedit /usr/bin/eclipse

With this contents

#!/bin/sh
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*

Then create a gnome menu item

sudoedit /usr/share/applications/eclipse.desktop

With this contents

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true

Configure

You now have a working eclipse.But run this command first to initialise the set up.

/opt/eclipse/eclipse -clean

Then from here on you can run from the menu item applications/programming/eclipse

Add Projects

Follow this tutorial to create web projectsand to add tomcat as the server for this project

Or follow my own alternative wayof creating projects compatible with Eclipse.


original Link:http://flurdy.com/docs/eclipse/install.html

 


原创粉丝点击