[wiki]EclipseIDE

参与到Ubuntu的翻译中来
回复
头像
oneleaf
论坛管理员
帖子: 10218
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 102 次

[wiki]EclipseIDE

#1

帖子 oneleaf » 2005-10-01 12:08

Eclipse in Breezy

Eclipse 3.0.1 has been uploaded to Breezy. Finally. You should be able to simply apt-get install it.

Actually these breezy packages should build fine for Hoary too. You can probably just apt-get source them and let it rip.

The Help system has been disabled completely because we don't yet have a free Tomcat. Working on that. Enjoy.

apt-get install eclipse-jdt

Eclipse download

Go to the [WWW] nearest eclipse mirror and download eclipse-platform-3.0.2-linux-gtk.zip. If you want to code in Java, you can download eclipse-SDK-3.0.2-linux-gtk.zip instead or install it afterwards.
Eclipse installation
Global installation

Use this method if you want Eclipse available for all users, or if you are the only user of the computer.
Eclipse

*

Unzip eclipse in /opt:

$ sudo unzip eclipse-SDK-3.0.2-linux-gtk.zip -d /opt

*

Change the owner to root:

$ sudo chown -R root:root /opt/eclipse/

*

Create /usr/bin/eclipse with your favorite text editor (e.g sudo vi /usr/bin/eclipse) and add the following content:

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

$ECLIPSE_HOME/eclipse $*

*

Finally, allow the script to be executed:

$ sudo chmod +x /usr/bin/eclipse

Gnome icon

*

Create a new launcher on the desktop (right click on the desktop -> Create Launcher) or on a panel (right click on a panel -> Add to Panel -> Custom Application Launcher) and add the following data:
o

Name: Eclipse Platform
o

Command: eclipse
o

Icon: /opt/eclipse/icon.xpm

If you want an icon in the Applications Menu:

*

Create a new launcher called eclipse.desktop in /usr/share/applications with your favorite text editor (e.g sudo vi /usr/share/applications/eclipse.desktop) and add the following content:

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

User installation

Use this method if you want Eclipse available only for yourself, or if you haven't root access to the computer.
Eclipse

*

Make a personnal opt folder in your home directory:

$ mkdir ~/opt

*

Unzip eclipse in the opt folder:

$ unzip eclipse-platform-3.0.2-linux-gtk.zip -d ~/opt

*

Make a bin folder in your home directory, this will be used for the startup script:

$ mkdir ~/bin

*

Create ~/bin/eclipse with your favorite text editor (e.g vi ~/bin/eclipse) and add the following content:

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

$ECLIPSE_HOME/eclipse $*

*

Finally, allow the script to be executed:

$ chmod +x ~/bin/eclipse

Gnome icon

*

Create a new launcher on the desktop (right click on the desktop -> Create Launcher) or on a panel (right click on a panel -> Add to Panel -> Custom Application Launcher)
o

Name: Eclipse Platform
o

Command: /home/<your username>/bin/eclipse
o

Icon: /home/<your username>/opt/eclipse/icon.xpm

From AndrewGoodnough Sun Apr 17 15:08:05 +0100 2005 From: Andrew Goodnough Date: Sun, 17 Apr 2005 15:08:05 +0100 Subject: Mozilla reference in shell script? Message-ID: <20050417150805+0100@[WWW] https://www.ubuntulinux.org>

Why is it necessary to add the variable for MOZILLA_FIVE_HOME? Is this so eclipse can use Firefox as its internal browser?

CategoryDocumentation CategoryCleanup


https://wiki.ubuntu.com/EclipseIDE
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
送出感谢: 0
接收感谢: 3 次
联系:

Re: EclipseIDE

#2

帖子 leal » 2005-10-01 19:51

待完善

Breezy之Eclipse

目前Eclipse 3.0.1已上传到Breezy源,你应该能够仅用用apt-get轻松搞定Eclipse了。

实际上,这些breezy安装包也能在Hoary上构建良好(Need Improvement)。或许你只要通过apt-get source得到它们,然后就动手做吧。

由于我们还未获得一个自由/免费的Tomcat,因此帮助系统已被完全禁用。我们仍在努力中。下面请自便吧(Need Improvement)

apt-get install eclipse-jdt

下载Eclipse

访问离你最近的[WWW]eclipse镜象,然后下载eclipse-platform-3.0.2-linux-gtk.zip。如果你要进行Java编码,可以选择下载eclipse-SDK-3.0.2-linux-gtk.zip或之后进行安装。

Eclipse安装

全局安装

如果你想让所有用户都可以使用Eclipse或者你是这台计算机的唯一用户,那么可以使用这种方法(进行安装)。

Eclipse

*把eclipse unzip到/opt目录中:

$ sudo unzip eclipse-SDK-3.0.2-linux-gtk.zip -d /opt

*把拥有者变更为root:

$ sudo chown -R root:root /opt/eclipse/

*用你最喜欢的文本编辑器(如sudo vi /usr/bin/eclipse)创建/usr/bin/eclipse文件,并添加下列内容:

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

$ECLIPSE_HOME/eclipse $*

*最后,使该脚本成为可执行:

$ sudo chmod +x /usr/bin/eclipse

Gnome图标

*在桌面(右键单击桌面->创建启动器)或面板(右键单击面板->添加到面板 ->定制应用程序启动器)上创建一个新的启动器,然后添加下列数据:
o名称:Eclipse Platform
o命令:eclipse
o图标: /opt/eclipse/icon.xpm

如果你想在Applications(应用程序)菜单上添加一个图标:

* 用你最喜欢的文本编辑器(如sudo vi /usr/share/applications/eclipse.desktop)在/usr/share/applications目录里新建一个名为eclipse.desktop的启动器,然后添加下列内容:

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse Platform
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
上次由 leal 在 2005-10-02 0:45,总共编辑 3 次。
用心×恒 | 豆瓣 | 门户 | Blog
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
送出感谢: 0
接收感谢: 3 次
联系:

第二部分

#3

帖子 leal » 2005-10-02 0:20

各用户安装(User installation)

如果你只要自己能使用Eclipse或者你无法以root权限访问所使用的计算机,那么可以用这种方法。

Eclipse

*在你的用户目录里新建一个人的opt文件夹:

$ mkdir ~/opt

*把eclipse unzip到/opt目录中:

$ unzip eclipse-platform-3.0.2-linux-gtk.zip -d ~/opt

*在你的用户目录里新建一个bin文件夹,用来存放启动脚本:

$ mkdir ~/bin

*用你最喜欢的文本编辑器(如sudo vi ~/bin/eclipse)创建~/bin/eclipse文件,并添加下列内容:

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

$ECLIPSE_HOME/eclipse $*

*最后,使该脚本成为可执行:

$ chmod +x ~/bin/eclipse

Gnome图标

*在桌面(右键单击桌面->创建启动器)或面板(右键单击面板->添加到面板 ->定制应用程序启动器)上创建一个新的启动器,然后添加下列数据:
o名称:Eclipse Platform
o命令:/home/<你的用户名>/bin/eclipse
o图标:/home/<你的用户名>/opt/eclipse/icon.xpm

From AndrewGoodnough Sun Apr 17 15:08:05 +0100 2005
From: Andrew Goodnough Date: Sun, 17 Apr 2005 15:08:05 +0100 Subject: Mozilla reference in shell script? Message-ID: <20050417150805+0100@[WWW] https://www.ubuntulinux.org>

为什么需要添加变量MOZILLA_FIVE_HOME?这么做是为了让eclipse可以把Firefox用作自己的内部浏览器?

CategoryDocumentation CategoryCleanup


https://wiki.ubuntu.com/EclipseIDE
用心×恒 | 豆瓣 | 门户 | Blog
头像
oneleaf
论坛管理员
帖子: 10218
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 102 次

#4

帖子 oneleaf » 2005-10-11 13:37

头像
millenniumdark
论坛版主
帖子: 4160
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
送出感谢: 43 次
接收感谢: 9 次
联系:

#5

帖子 millenniumdark » 2006-07-30 0:15

回复

回到 “软件和文档翻译”