当前位置: 代码迷 >> Eclipse >> How to install Eclipse 4.2 on Ubuntu 12.10 - amd64
  详细解决方案

How to install Eclipse 4.2 on Ubuntu 12.10 - amd64

热度:549   发布时间:2016-04-22 23:48:15.0
How to install Eclipse 4.2 on Ubuntu 12.10 -- amd64

How to install Eclipse 4.2 on Ubuntu 12.10 -- amd64

I made it following these steps in a post on "askubuntu"~ Fairly clear~

*****************************The original post (with some modification)******************************

Because Eclipse packages in Ubuntu are out of date. If we want to install last releases we are going to do it manually. You can just download the tar.gz file from?eclipse.org.

1)?Download Eclipse. I got?eclipse-jee-juno-SR2-linux-gtk-x86_64.tar.gz

2) Extract it by executing a command line

tar -xzf eclipse-jee-juno-SR2-linux-gtk-x86_64.tar.gz

Or with Archive Manager extraction.

3) Move extracted eclipse folder to?/opt/ folder

mv eclipse /opt/?
sudo chown -R root:root eclipse?
sudo chmod -R +r eclipse

4) Create an eclipse executable in your user path

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

Create a file named?eclipse?in?/usr/bin/?with your preferred editor (nano,?gedit,?vi...)

Copy this into it

#!/bin/sh?
export ECLIPSE_HOME="/opt/eclipse"?
$ECLIPSE_HOME/eclipse $*

And save the file

5) Create a Gnome menu item

Create a file named?eclipse.desktop?in?/usr/share/applications/?with your preferred editor (nano,gedit,?vi...)

Copy this into it

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

And save the file

6) Launch Eclipse

/opt/eclipse/eclipse -clean &

7) Now you can Lock Eclipse to the launcher bar by clicking right button on?Lock to Laucher

?

Source from:?http://askubuntu.com/questions/26632/how-to-install-eclipse

  相关解决方案