无法在 Eclipse 3.5 中“安装新软件”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1750222/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 19:00:53  来源:igfitidea点击:

Cannot "Install New Software" in Eclipse 3.5

eclipseplugins

提问by David E

I have just installed Eclipse 3.5 for Java EE developers ("Galileo").

我刚刚为 Java EE 开发人员(“Galileo”)安装了 Eclipse 3.5。

I need to add an extra plugin, but when I select the "Install New Software ..." menu item, nothing happens. Literally nothing - no dialog opens, no error message is displayed. If I have the Debug window open, no message are displayed.

我需要添加一个额外的插件,但是当我选择“安装新软件...”菜单项时,没有任何反应。几乎没有 - 没有打开对话框,没有显示错误消息。如果我打开了调试窗口,则不会显示任何消息。

If I go to Preferences -> Install/Update -> Available Software Sites, that dialog opens OK, I can manage the list of update sites, and test the connections, and they all appear OK. But I cannot get to use them to actually install anything.

如果我转到首选项 -> 安装/更新 -> 可用软件站点,该对话框将打开,我可以管理更新站点列表,并测试连接,它们都显示正常。但我无法使用它们来实际安装任何东西。

Is it just broken, or could there be something more subtle wrong?

它只是坏了,还是有更微妙的错误?

Thanks.

谢谢。

回答by zvikico

Start by checking you error logunder Window -> Show View -> Error Log. See if you're getting any exception while trying to install new software.

通过检查你开始错误日志Window -> Show View -> Error Log。查看您在尝试安装新软件时是否遇到任何异常。

You can also install by downloading the plugin and unzipping it in the dropins folder.

您也可以通过下载插件并将其解压缩到 dropins 文件夹中来安装。

回答by Kyle L.

I ran into the same problem. There seems to be a bug related to the finish button (I am assuming this is the same problem you are experiencing). The way I got around it is by clicking on the finish button (or next, or whichever button is not working for you) and press the 'Enter' key. It's annoying. Seems to be an issue with how Eclipse is integrating with GTK.

我遇到了同样的问题。似乎有一个与完成按钮相关的错误(我假设这与您遇到的问题相同)。我绕过它的方法是单击完成按钮(或下一步,或任何不适合您的按钮)并按“Enter”键。这很烦人。似乎是 Eclipse 如何与 GTK 集成的问题。

回答by Ivan

I had the same problem, took a look at the error log and changed the launcher from "/usr/bin/eclipse" to "sudo /usr/bin/eclipse", it was a permissions thing...

我遇到了同样的问题,查看了错误日志并将启动器从“/usr/bin/eclipse”更改为“sudo /usr/bin/eclipse”,这是一个权限问题...

回答by pete

GDK_NATIVE_WINDOWS=true also solved the non-clickable button problem for me running gnome 2.28.1 with Ubuntu Karmic (9.10) x64 with kernel 2.6.31-14-generic

GDK_NATIVE_WINDOWS=true 也为我解决了无法点击按钮的问题,我使用 Ubuntu Karmic (9.10) x64 和内核 2.6.31-14-generic 运行 gnome 2.28.1

回答by vogella

I suggest to use Eclipse Indigo (Eclipse 3.7)which contains EGitalready.

我建议使用已经包含的Eclipse Indigo (Eclipse 3.7)EGit

回答by Sergi

To resolve this problem, I did the following:

为了解决这个问题,我做了以下事情:

  1. Placed my copy of Eclipse in the trash
  2. Emptied my trash
  3. Rebooted my computer
  4. Downloaded the latest version of Eclipse (which was Indigo at the time of writing)
  5. Placed the .zip file in my applications folder
  6. Double-clicked on the compressed zip to open it (I'm using Mac OS X.6)
  1. 将我的 Eclipse 副本放入垃圾箱
  2. 清空我的垃圾
  3. 重新启动了我的电脑
  4. 下载了最新版本的 Eclipse(在撰写本文时为 Indigo)
  5. 将 .zip 文件放在我的应用程序文件夹中
  6. 双击压缩包打开它(我使用的是 Mac OS X.6)

The problem disappeared. I am now able to do Help/Install new software....

问题消失了。我现在能够做到帮助/安装新的软件...

回答by James P.

If none of the solutions above work for you, simply change the workspace to another location. If the list of items appears properly then there's probably something screwed up in the workspace and not Eclipse. Hope this helps.

如果上述解决方案都不适合您,只需将工作区更改为其他位置即可。如果项目列表正确显示,则可能是工作区而不是 Eclipse 中出现问题。希望这可以帮助。

回答by geocode

I actually just had a similar problem and wanted to offer the solution that worked for me. This was not a permissions thing. To solve that I always install eclipse as my user in my local directory (e.g. /home/[user]/local/eclipse-3.7.2) and then you never have permission issues.

我实际上只是遇到了类似的问题,并想提供对我有用的解决方案。这不是权限问题。为了解决这个问题,我总是将 eclipse 作为我的用户安装在我的本地目录(例如 /home/[user]/local/eclipse-3.7.2)中,然后您就永远不会遇到权限问题。

Setup: Go to Help -> Install New software -> Available Software Sites (to add new site)

设置:转到帮助 -> 安装新软件 -> 可用软件站点(添加新站点)

Symptom: Try to add a new site. After hitting enter or clicking finish the site shows up in the list of available sites. Click Okay to go back to the install new software and the site is not available in the drop down. Go back to Available sites and the site is gone.

症状:尝试添加新站点。按 Enter 键或单击完成后,站点将显示在可用站点列表中。单击确定返回安装新软件,该站点在下拉列表中不可用。返回可用站点,该站点就消失了。

Fix: After adding the site click on the reload button while the new site is highlighted (before clicking Ok to go back to the "Install new software screen"

修复:添加站点后,在突出显示新站点时单击重新加载按钮(在单击确定返回“安装新软件屏幕”之前)

This was occurring on Indigo SR2 (and has been happening for a while). I am running this on Linux Gtk -- but I don't see why this would be related.

这发生在 Indigo SR2 上(并且已经发生了一段时间)。我在 Linux Gtk 上运行它——但我不明白为什么这会相关。

Hope this helps!

希望这可以帮助!

回答by cmcginty

Delete your ~/.eclipse folder and restart eclipse. This is the only thing that worked for me.

删除您的 ~/.eclipse 文件夹并重新启动 eclipse。这是唯一对我有用的东西。

回答by x0v

just press enter after entering URL in "Install new software" window

只需在“安装新软件”窗口中输入 URL 后按 Enter