Eclipse - 期间发生内部错误:“计算启动按钮工具提示”

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

Eclipse - An internal error occurred during: "Compute launch button tooltip"

eclipseide

提问by gh.

I launched Eclipse earlier to jot down a snippet and was faced with the following as an error when I tried to run a fresh project:

我早些时候启动了 Eclipse 以记下一个片段,当我尝试运行一个新项目时遇到以下错误:

An internal error occurred during: "Compute launch button tooltip".

在以下过程中发生内部错误:“计算启动按钮工具提示”。

That popup window shows as soon as I mouse-over the run icon in the top bar, or if I right click on the class in the explorer window and select any of the run/debug options.

只要我将鼠标悬停在顶部栏中的运行图标上,或者如果我右键单击资源管理器窗口中的类并选择任何运行/调试选项,就会显示该弹出窗口。

After doing some research on the error, I see several people who posted similar messages but they all have been fresh installs of Eclipse. So note that this is not a fresh install, and that Eclipse was working fine earlier today. Also note that not only does my new project not run (with the normal mainmethod), but projects I was running earlier have all stopped working with the same error.

在对错误进行了一些研究之后,我看到有几个人发布了类似的消息,但他们都是全新安装的 Eclipse。所以请注意,这不是全新安装,而且 Eclipse 今天早些时候运行良好。另请注意,不仅我的新项目没有运行(使用正常main方法),而且我之前运行的项目都因相同的错误而停止工作。

Finally, also be aware that after seeing other people's suggestions on fixing this, one specifically said to select run configurations from the top of the page run menu. When I selected run configurations from this dropdown, I got the following message:

最后,还要注意的是,在看到其他人关于解决此问题的建议后,有人特别说要从页面运行菜单的顶部选择运行配置。当我从此下拉列表中选择运行配置时,我收到以下消息:

Exception occurred creating launch configuration tabs
Reason: Plug-in org.eclipse.jdt.debug.ui was unable to load class org.eclipse.jdt.internal.debug.ui.launcher.LocalJavaApplicationTabGroup

创建启动配置选项卡时发生异常
原因:插件 org.eclipse.jdt.debug.ui 无法加载类 org.eclipse.jdt.internal.debug.ui.launcher.LocalJavaApplicationTabGroup

After that message, the run window opens but all of the tabs are missing. Like where you can set the display width and height, and the other tabs, they are all missing from the window now.

在该消息之后,运行窗口打开,但所有选项卡都丢失了。就像您可以设置显示宽度和高度以及其他选项卡的位置一样,它们现在都从窗口中消失了。

I was using Eclipse trouble free earlier today and I am sure no updates took place between when Eclipse was working and now. My question is of multiple parts: What is wrong in a nutshell? What could have caused this?

我今天早些时候在使用 Eclipse 时没有遇到任何问题,我确信在 Eclipse 工作和现在之间没有发生任何更新。我的问题有多个部分:简而言之有什么问题?这可能是什么原因造成的?

采纳答案by gh.

I never found out what went wrong, but a reinstall of eclipse fixed it. All projects survived seemingly undamaged. Thanks for the reply on the .ini but that did no good.

我从来没有发现出了什么问题,但是重新安装 eclipse 修复了它。所有项目似乎都完好无损地幸存下来。感谢您对 .ini 的回复,但这并没有什么好处。

回答by mutewitness

Got this from another site of some guy who got this same error after upgrading. Worked for me as well. Apparently putting the following line in your eclipse.inihelps:

从升级后遇到相同错误的某个人的另一个站点获得此信息。也对我来说有效。显然,将以下行放在您的eclipse.ini帮助中:

-Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=ICU

回答by Samyak Jain

Try setting the launch properties in:

尝试在以下位置设置启动属性:

Window>Preferences>Run/Debug(Expand)>Launching(Click)

Under launch Operations menu set it to:

在启动操作菜单下将其设置为:

Always launch the previously launched application

Click:

点击:

Apply>Ok

回答by K John Smith

I had same error today - in an eclipse installation (Juno SR2 64bit) that has been running fine for months.

我今天遇到了同样的错误 - 在已经运行了几个月的 eclipse 安装(Juno SR2 64 位)中。

0: There were no changes on svn for my projects since yesterday (when it was running fine).

0:自昨天(运行良好时)以来,我的项目在 svn 上没有任何变化。

1: I restored the workspace from a 'Windows 7 -> Properties -> previous copy' backup. This failed because the directory structure of the '.metadata' contains folders with a deeper structure than is supported.

1:我从“Windows 7 -> 属性 -> 上一个副本”备份中恢复了工作区。这失败是因为“.metadata”的目录结构包含比支持的结构更深的文件夹。

2: I restored the workspace from a overnight archive (gzipped so file depth is not an issue). This had no effect.

2:我从隔夜存档恢复了工作区(gzipped 所以文件深度不是问题)。这没有效果。

3: I tried to restore the eclipse installation directory (which seems to be updated an awful lot) from a 'Windows 7 -> Properties -> previous copy' backup. Again this failed - because of folder-depth issues (Note: it is installed in the root directory of my disk - so there is actually no way to use a restore on this installation!)

3:我试图从“Windows 7 -> 属性 -> 上一个副本”备份中恢复 eclipse 安装目录(似乎更新了很多)。再次失败 - 由于文件夹深度问题(注意:它安装在我磁盘的根目录中 - 因此实际上无法在此安装中使用还原!)

4: Had to delete the .metadata from my workspace and reinstall eclipse (and all the additional plugins), and re-import my projects, and setup all the servers, and android, etc, which took many hours.

4:不得不从我的工作区中删除 .metadata 并重新安装 eclipse(以及所有其他插件),并重新导入我的项目,并设置所有服务器和 android 等,这需要很多小时。

The moral of the story? Backup both your workspace AND the eclipse installation every night manually. Windows Restore will NOT save you. Backing up your workspace is NOT enough.

这个故事的主旨?每晚手动备份您的工作区和 eclipse 安装。Windows 还原不会拯救您。仅备份您的工作区是不够的。

回答by Elad

I had the same problem using eclipse mars. I cleared the folder .recommenders\index

我在使用 eclipse mars 时遇到了同样的问题。我清除了文件夹 .recommenders\index

And that solved my issue. Hope it helps.

这解决了我的问题。希望能帮助到你。

回答by Aditya vasistha

incase you are having the eclipse files which you have downloaded from the official site .Just extract those file in the same folder where your previous eclipse was installed and select replace all. best solution

如果您有从官方网站下载的 eclipse 文件。只需将这些文件解压缩到您之前安装 eclipse 的同一文件夹中,然后选择全部替换。最佳解决方案