如何摆脱 Eclipse 中的计算启动按钮工具提示错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19358971/
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
how to get rid of Compute Launch Button Tooltip error in Eclipse
提问by user13267
This error started coming this morning and it's driving me crazy
It didn't actually start suddenly, I had imported a few projects which did not compile, after which this started happening, but I cannot remember exactly all the things that I did to make it start
这个错误今天早上
开始出现,让我发疯它实际上并不是突然开始的,我导入了一些没有编译的项目,之后这开始发生,但我不记得我所做的所有事情来做到这一点开始
When I bring the cursor above the green compile button, an error message appears that says Compute Launch Button Tooltip error
and some vague description which just says that there was an error in evaluating the Launch button tooltip. the error message is blocking so I cannot click anywhere on eclipse interface until I click OK on the message. Nothing else happens, but I'm not able to compile and run anything either, since this error appears as soon as the cursor hovers over the green run button (or the debug as well, I think). If I right click on the project icon in the project explorer, bringing the cursor over the run option does not bring up the submenu either
当我将光标移到绿色编译按钮上方时,会出现一条错误消息,上面写着Compute Launch Button Tooltip error
一些模糊的描述,只是说评估 Launch 按钮工具提示时出错。错误消息被阻止,因此在我单击消息上的确定之前,我无法单击 eclipse 界面上的任何位置。没有其他事情发生,但我也无法编译和运行任何东西,因为只要光标悬停在绿色运行按钮上(或调试,我认为)就会出现此错误。如果我右键单击项目资源管理器中的项目图标,将光标放在运行选项上也不会显示子菜单
--- EDIT ---
- - 编辑 - -
If I restart the computer and do it again, it works. However if I close Eclipse again and restart it (Eclipse that is), the problem appears again, until I restart the computer.
如果我重新启动计算机并再次执行此操作,则它可以工作。但是,如果我再次关闭 Eclipse 并重新启动它(即 Eclipse),问题再次出现,直到我重新启动计算机。
How do I stop this error from happening?
如何阻止此错误发生?
--- EDIT 2 ---
--- 编辑 2 ---
I moved the .launch files as pointed out in the answer to a backup location. I hadn't included this information before, but when I start up Eclipse this message appears as well, when Eclipse is loading and the splash screen is visible:
我将 .launch 文件移动到备份位置的答案中。我之前没有包含此信息,但是当我启动 Eclipse 时,也会出现此消息,当 Eclipse 正在加载并且启动屏幕可见时:
Even after I moved the .launch files to a backup location, after eclipse starts up, I still get the Compute Launch Button Tooltip error
when I hover over the green compile button. What can I do now?
即使在我将 .launch 文件移动到备份位置后,在 eclipse 启动后,Compute Launch Button Tooltip error
当我将鼠标悬停在绿色编译按钮上时,我仍然会看到。我现在能做什么?
--- EDIT 3 ---
After the above messages, if i close eclipse IDE and then start it up again (without restarting my computer), I get the following error:
After this the IDE doesn't even start up. The log file it mentions is too big and I don't know what to look for inside it.
--- 编辑 3 ---
在上述消息之后,如果我关闭 eclipse IDE 然后再次启动它(不重新启动我的计算机),我会收到以下错误:
在此之后,IDE 甚至没有启动。它提到的日志文件太大,我不知道在里面寻找什么。
--- EDIT 4 ---
Further experiment
--- 编辑 4 ---
进一步实验
I deleted the .metadata folder and restarted Eclipse in the same workspace. Now eclipse seems to treat it as a new workspace and does not even show the project folder that is there, in it's project tree. So I go to file > import > import existing project into workspace, and import the same project folder that is in the workspace back using Eclipse, and do not check the Copy project to workspace check box. This seems to make it work, but if I close Eclipse, and try to start it again, then I get the error message in EDIT 3nd Eclipse does not start up. What could have gone wrong here?
我删除了 .metadata 文件夹并在同一工作区中重新启动了 Eclipse。现在 eclipse 似乎把它当作一个新的工作区,甚至不显示那里的项目文件夹,在它的项目树中。因此,我转到文件 > 导入 > 将现有项目导入工作区,并使用 Eclipse 将工作区中相同的项目文件夹导入回来,并且不选中将项目复制到工作区复选框。这似乎使它起作用,但是如果我关闭 Eclipse,并尝试再次启动它,那么我在 EDIT 3nd Eclipse 中收到错误消息无法启动。这里可能出了什么问题?
回答by Aaron Digulla
This sounds like you have a corrupt .launch
config file somewhere in your workspace.
这听起来像是您.launch
的工作区中某处有损坏的配置文件。
You can find these files in workspace/.metadata/.plugins/org.eclipse.debug.core/.launches/
or in your projects if you select "Shared File" in the last tab of the launch config.
workspace/.metadata/.plugins/org.eclipse.debug.core/.launches/
如果在启动配置的最后一个选项卡中选择“共享文件”,则可以在项目中或项目中找到这些文件。
It should be enough to delete (or move) all the "*.launch" files to make Eclipse work again.
删除(或移动)所有“*.launch”文件应该足以让 Eclipse 再次工作。
回答by 18446744073709551615
sudo apt-get --reinstall install tzdata-java
回答by Syamala
Added "-Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=ICU
" to eclipse.ini file and this solved my problem.
-Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=ICU
在 eclipse.ini 文件中添加了“ ”,这解决了我的问题。
回答by Ashish Kwatra
Add the below line in eclipse.ini
. This might sort out the problem.
在eclipse.ini
. 这可能会解决问题。
-Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=ICU