如何在ubuntu 上安装eclipse: how to install eclipse on ubuntu
2011-04-18 18:51
906 查看
how to Install Eclipse in Ubuntu 10.04
![](http://sudobits.com/graphics/blog_post/install_eclipse_on_ubuntu_10_04.png)
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
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
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
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
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
/opt/eclipse/eclipse -clean
Then from here on you can run from the menu item applications/programming/eclipse
Add Projects
Or follow my own alternative wayof creating projects compatible with Eclipse.
original Link:http://flurdy.com/docs/eclipse/install.html
相关文章推荐
- 如何在Ubuntu9.10上安装RealPlayer(How to install RealPlayer on Ubuntu)
- 如何在ubuntu 上安装tomcat::how to install tomcat on Ubuntu
- [译]How to Install Node.js on Ubuntu 14.04 如何在ubuntu14.04上安装node.js
- Mac如何通过Xcode安装GCC编译器 How to install gcc on mac with xcode
- How-To: Install Google’s Android Eclipse plugin (and/or adb) on 64-bit Debian/Ubuntu
- How to install Redmine on CentOS- 在CentOS上如何安装Redmine
- How to install SOGo on Ubuntu ?(命令修改 )安装 sogo拼音法
- 如何在centos6.4上安装git How To Install Git on a CentOS 6.4 VPS
- How to debug SceneLib with Eclipse and How to install SceneLib 1.0 on Ubuntu 10.04
- 如何在mac上安装composer(How to install composer on the Mac)
- 在ubuntu上安装mysql : How to install MySQL on ubuntu(转)
- How to install cmake 3.2 on ubuntu 14.04? caffe安装错误的解决
- How to install and setup Tor on Kali Linux 2.0(如何在Kali Linux 2.0 下安装 Tor)
- [译]How to Setup Sync Gateway on Ubuntu如何在ubuntu上安装sync-gateway
- How to install Nagios in ubuntu10.04/10.10(如何安装nagios)
- Ubuntu 14.04安装PostgreSQL How To Install and Use PostgreSQL on Ubuntu 14.04
- How to install Ruby on rails in Windows 2003/xp 如何安装ROR
- iOS 如何在苹果电脑上安装svn 服务器(how to install svn server on the computer of mac os x)
- How to Install rar/unrar on Ubuntu 16.04 LTS (Xenial)
- How to install Java SDK on CentOS?(Centos安装JDK)