Linux 适用于 Ubuntu 10.10 的 Eclipse 3.6 Helios
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4767584/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse 3.6 Helios for Ubuntu 10.10
提问by Jeevan Dongre
I have ubuntu 10.10 net book edition installed on my dell studio laptop. I downloaded helios for the eclipse site but when I am not able to run it. I have downloaded eclipse 3.5 from synaptic package manager but I am not able to update eclipse 3.5 to eclipse 3.6. Is der any other way to have updated eclipse? Eclipse 3.6 supports HTML 5.
我的戴尔工作室笔记本电脑上安装了 ubuntu 10.10 上网本版本。我为 eclipse 站点下载了 helios,但是当我无法运行它时。我已经从突触包管理器下载了 eclipse 3.5,但我无法将 eclipse 3.5 更新到 eclipse 3.6。有没有其他方式来更新日食?Eclipse 3.6 支持 HTML 5。
Please let me know, thanks a lot in advance
请让我知道,非常感谢提前
采纳答案by Neeraj Singh
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:
要在 ubuntu 上安装 eclipse,您需要先从http://www.eclipse.org/downloads/下载它 ,右键单击下载的文件并在此处解压缩或运行以下命令:
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.
其中 eclipse-SDK-3.3.1.1-linux-gtk 是您的 eclipse-SDK 名称和版本,而 dir 是 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...
现在您已准备好配置您的 eclipse。要做到这一点,请按照以下步骤一步一步...
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:
让我们还通过创建符号链接使 eclipse 无处不在:
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
您现在可以通过在终端中或从 GNOME 菜单 Applications -> Programming -> Eclipse 中键入 eclipse 来启动 Eclipse
回答by VonC
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)
至少,您仍然有手动安装,这使您当前的 Eclipse3.5 保持不变(如果 3.6 给您带来太多麻烦,则允许您返回它)
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).
要运行 3.6 下载:
- 将下载解压到您可以完全控制的目录中,通常是您用户名下的目录,保留文件夹。
- 创建 eclipse 可执行文件的快捷方式,通常在生成的“
eclipse
”文件夹中。- 使用生成的快捷方式运行程序。
- 当您的新 Eclipse 安装开始时,指向您现有的工作区。
您可以继续使用相同的工作区安装 3.5 和 3.6,或者您可以通过从软件管理程序中取消选择 3.5(几种方法之一)来删除 3.5。
Alexander Pogrebnyakactually points out in the comment:
Alexander Pogrebnyak实际上在评论中指出:
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.
工作区不能往返
3.5->3.6->3.5
。
通常的解决方案是将 3.5 和 3.6 版本的工作区保存在不同的目录中。
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):
请注意,您必须确保您的 java 安装正确(这应该对您有好处,但以防万一):
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:
在 Ubuntu 10.10 上安装 Helios 3.6 相当简单。
从 eclipse.org 下载 eclipse 包并将其解压缩到您的主目录中的一个文件夹中。棘手的部分是
java6-jdk
从 sun 合作伙伴存储库进行设置,但有一个易于遵循的指南:
基本上,您必须启用合作伙伴存储库,然后使用以下命令安装 java6 jdk:
sudo apt-get install sun-java6-jre sun-java6-plugin
and then if necessary update your java alternatives with:
然后在必要时更新您的 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
回答by Thorbj?rn Ravn Andersen
The Eclipse version available through the official Ubuntu channels is 3.5 and should notbe manually upgraded to 3.6. You probably will not have write permission to do so.
通过Ubuntu官方渠道提供的Eclipse版本是3.5,应该不手动升级到3.6。您可能没有这样做的写权限。
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.
如果您必须使用 3.6,最简单的方法是从 eclipse.org 下载官方发行版,解压并直接运行 eclipse 二进制文件。这还允许您通过升级和额外模块完全自行管理。
回答by yog
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.
Ubuntu 官方渠道提供的 Eclipse 版本是 3.5,不应手动升级到 3.6。您可能没有这样做的写权限。