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...
# 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).
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:
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
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.
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.
There is a PPA available, that should let you upgrade through package management before the packages reach the Ubuntu repos. Sadly, the packages seembrokenright now.
发布评论
评论(5)
试试这个:
要在 ubuntu 上安装 eclipse,您需要先从 http://www.eclipse.org/downloads/ 下载它
通过右键单击下载的文件并在此处解压或运行以下命令来解压该文件:
其中 eclipse-SDK-3.3.1.1-linux-gtk 是您的 eclipse-SDK 名称及其版本,dir 是 eclipse-sdk 的目录。
现在将其移动到根目录。应用以下命令来执行此操作。
现在您已准备好配置 Eclipse。为此,请逐步执行以下操作...
注意权限:
在路径中创建可执行文件:
复制以下内容并保存文件:
我们还可以通过创建符号链接使 Eclipse 在任何地方都可执行:
创建菜单图标:
键入此内容并保存:
首次运行:
现在只需在终端中键入 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:
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.
Now you are ready to configure your eclipse. To do this follow the following step by step...
Take care of the permissions:
Create an executable in your path:
Copy the following content and save the file:
Let’s also make eclipse executable everywhere by creating a symlink:
Create the menu icon:
Type in this content and save:
Run for the first time:
You can now start Eclipse by simply typing eclipse in the terminal or from the GNOME menu Applications -> Programming -> Eclipse
至少,您仍然有手动安装,这会留下您当前的Eclipse3。 5 保持不变(如果 3.6 给你带来太多麻烦,可以返回到它)
Alexander Pogrebnyak 实际上在评论中指出:
为每个版本拥有一个工作区的想法始终是最安全的途径,将每个项目导入到各自的工作区。
请注意,您必须确保您的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)
Alexander Pogrebnyak actually points out in the comment:
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):
通过官方 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.
通过 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.
有 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.