适用于 Ubuntu 10.10 的 Eclipse 3.6 Helios

发布于 2024-10-13 01:44:41 字数 1436 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

聆听风音 2024-10-20 01:44:41

试试这个:

要在 ubuntu 上安装 eclipse,您需要先从 http://www.eclipse.org/downloads/ 下载它
通过右键单击下载的文件并在此处解压或运行以下命令来解压该文件:

tar xzf dir/eclipse-SDK-3.3.1.1-linux-gtk.tar.gz

其中 eclipse-SDK-3.3.1.1-linux-gtk 是您的 eclipse-SDK 名称及其版本,dir 是 eclipse-sdk 的目录。

现在将其移动到根目录。应用以下命令来执行此操作。

sudo mv dir/eclipse ~

现在您已准备好配置 Eclipse。为此,请逐步执行以下操作...

sudo mv eclipse /opt/

注意权限:

sudo chmod -R +r /opt/eclipse
sudo chmod +x /opt/eclipse/eclipse

在路径中创建可执行文件:

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

复制以下内容并保存文件:

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

我们还可以通过创建符号链接使 Eclipse 在任何地方都可执行:

sudo ln -s /usr/bin/eclipse /bin/eclipse

创建菜单图标:

sudo gedit /usr/share/applications/eclipse.desktop

键入此内容并保存:

[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

首次运行:

eclipse -clean

现在只需在终端中键入 eclipse 或从 GNOME 菜单应用程序 -> 即可启动 Eclipse。编程->蚀

Try this:

To install eclipse on ubuntu you need to download it first from http://www.eclipse.org/downloads/
Extract the downloaded file by right click on it and extract here or running the following:

tar xzf dir/eclipse-SDK-3.3.1.1-linux-gtk.tar.gz

Where eclipse-SDK-3.3.1.1-linux-gtk is your eclipse-SDK name with version and dir is the directory of eclipse-sdk.

Now move it to the root directory. Apply the following command to do this.

sudo mv dir/eclipse ~

Now you are ready to configure your eclipse. To do this follow the following step by step...

sudo mv eclipse /opt/

Take care of the permissions:

sudo chmod -R +r /opt/eclipse
sudo chmod +x /opt/eclipse/eclipse

Create an executable in your path:

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

Copy the following content and save the file:

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

Let’s also make eclipse executable everywhere by creating a symlink:

sudo ln -s /usr/bin/eclipse /bin/eclipse

Create the menu icon:

sudo gedit /usr/share/applications/eclipse.desktop

Type in this content and save:

[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

Run for the first time:

eclipse -clean

You can now start Eclipse by simply typing eclipse in the terminal or from the GNOME menu Applications -> Programming -> Eclipse

空宴 2024-10-20 01:44:41

至少,您仍然有手动安装,这会留下您当前的Eclipse3。 5 保持不变(如果 3.6 给你带来太多麻烦,可以返回到它)

要运行 3.6 下载:

  • 将下载的文件解压到您可以完全控制的目录中,通常是您用户名下的目录,并保留文件夹。
  • 创建 eclipse 可执行文件的快捷方式,通常位于生成的“eclipse”文件夹中。
  • 使用生成的快捷方式运行程序。
  • 当您的新 Eclipse 安装开始时,指向您现有的工作区。
    您可以继续使用同一工作区安装 3.5 和 3.6,也可以通过从软件管理程序中取消选择 3.5 来删除它(多种方法之一)。

Alexander Pogrebnyak 实际上在评论中指出:

工作区无法往返3.5->3.6->3.5
通常的解决方案是将 3.5 和 3.6 版本的工作区保留在不同的目录中。

为每个版本拥有一个工作区的想法始终是最安全的途径,将每个项目导入到各自的工作区


请注意,您必须确保您的java已正确安装(应该是已经对你有好处了,但以防万一):

在 Ubuntu 10.10 上安装 Helios 3.6 相当简单。
从 eclipse.org 下载 eclipse 包并将其解压到主目录中的文件夹中。

棘手的部分是从sun合作伙伴存储库设置java6-jdk,但是有一个易于遵循的指南
基本上你必须启用合作伙伴存储库,然后安装 java6 jdk:

sudo apt-get install sun-java6-jre sun-java6-plugin

然后如有必要,更新您的 java 替代方案:

# shows a list with available java alternatives:
sudo update-java-alternatives -l

# sets the alternative
sudo update-java-alternatives -s java-6-sun
sudo update-alternatives --config java

At least, you still have the manual install, which leaves your current Eclipse3.5 untouched (allowing you to go back to it if 3.6 gives you too much troubles)

To get your 3.6 download running:

  • Unzip the download into a directory you have complete control of, usually a directory under your username, preserving folders.
  • Create a shortcut to the eclipse executable, usually in the resulting "eclipse" folder.
  • Run the program using the resulting shortcut.
  • When your new eclipse install starts, point to your existing workspace.
    You can continue with both 3.5 and 3.6 installed using the same workspace, or you can remove 3.5 by deselecting it from your software management program (one of several ways).

Alexander Pogrebnyak actually points out in the comment:

workspace cannot round trip 3.5->3.6->3.5.
The usual solution is to keep 3.5 and 3.6 versions of workspace in different directories.

The idea to have one workspace for each version is always the safest route to take, with each of your project imported into each respective workspace.


Note, you have to make sure your java is correctly installed (which should be already good for you, but just in case):

Installing Helios 3.6 on Ubuntu 10.10 is rather simple.
Download eclipse package from eclipse.org and extract it to a folder in your home directory.

The tricky part is setting up java6-jdk from the sun partner repository but there is a easy to follow guide:
basically you have to enable the partner repository, then install java6 jdk with:

sudo apt-get install sun-java6-jre sun-java6-plugin

and then if necessary update your java alternatives with:

# shows a list with available java alternatives:
sudo update-java-alternatives -l

# sets the alternative
sudo update-java-alternatives -s java-6-sun
sudo update-alternatives --config java
森林很绿却致人迷途 2024-10-20 01:44:41

通过官方 Ubuntu 渠道提供的 Eclipse 版本是 3.5,不应手动升级到 3.6。您可能没有这样做的写权限。

如果您必须使用 3.6,最简单的方法是从 eclipse.org 下载官方发行版,解压并直接运行 eclipse 二进制文件。这还允许您通过升级和额外模块自行完全管理它。

The Eclipse version available through the official Ubuntu channels is 3.5 and should not be manually upgraded to 3.6. You probably will not have write permission to do so.

If you must have 3.6 the easiest way is to download the official distribution from eclipse.org, unzip it and run the eclipse binary directly. This also allows you to fully administer it by yourself with upgrades and extra modules.

无人问我粥可暖 2024-10-20 01:44:41

通过 Ubuntu 官方渠道提供的 Eclipse 版本是 3.5,不应手动升级到 3.6。您可能没有这样做的写权限。

The Eclipse version available through the official Ubuntu channels is 3.5 and should not be manually upgraded to 3.6. You probably will not have write permission to do so.

紫﹏色ふ单纯 2024-10-20 01:44:41

PPA 可用,它应该可以让您通过包管理进行升级在软件包到达 Ubuntu 存储库之前。遗憾的是,这些包似乎损坏 现在

There is a PPA available, that should let you upgrade through package management before the packages reach the Ubuntu repos. Sadly, the packages seem broken right now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文