Java Eclipse 内部错误“轮询新闻提要”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/52528693/
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 internal error "Polling news feeds"
提问by Agustín Clemente
I'm using Eclipse(4.9.0) on my MacBook (High Sierra, Java 11) and this error is showing sometimes, if I'm on another app, the errors create a "stack" as you see in the screenshot, it is annoying to come back to Eclipse and to close this error every time. Can somebody help me solve this?
我在我的 MacBook(High Sierra,Java 11)上使用 Eclipse(4.9.0),有时会显示此错误,如果我在另一个应用程序上,错误会创建一个“堆栈”,如屏幕截图所示,它每次都返回 Eclipse 并关闭此错误很烦人。有人可以帮我解决这个问题吗?
采纳答案by Pyves
This indeed seems to be an issue when Eclipse is run with Java 11. I have created Bug 539545to report this.
当 Eclipse 与 Java 11 一起运行时,这确实似乎是一个问题。我创建了错误 539545来报告这个问题。
In the meantime, you can work around this issue by disabling news feed polling. To do so, go to Preferences... -> General -> News, and untick the Enable automatic news pollingoption:
同时,您可以通过禁用新闻提要轮询来解决此问题。为此,请转到Preferences... -> General -> News,然后取消选中Enable automatic news polling选项:
The error window will no longer appear.
错误窗口将不再出现。
回答by Kondal Kolipaka
This is caused by the http://openjdk.java.net/jeps/320- which is removal of Java EE and CORBA Modules from the standard Java 11 version.
这是由http://openjdk.java.net/jeps/320引起的- 它从标准 Java 11 版本中删除了 Java EE 和 CORBA 模块。
As mentioned by @Pyves, the simple way would be unchecking "Enable automatic news polling" from the Preferences-> General -> News
正如@Pyves 所提到的,简单的方法是从首选项-> 常规-> 新闻中取消选中“启用自动新闻轮询”
But if you still need this, you can install "javax.*" bundles from the eclipse orbit repository. Here is the latest stable repo url: http://download.eclipse.org/tools/orbit/downloads/drops/R20180905201904/repository
但是,如果您仍然需要它,您可以从 eclipse 轨道存储库安装“javax.*”包。这是最新的稳定存储库网址:http: //download.eclipse.org/tools/orbit/downloads/drops/R20180905201904/repository
回答by Lea Kissner
Turning off the news feed does solve this problem (Per @Pyves, unchecking "Enable automatic news polling" from Preferences-> General -> News), butbe aware that you may get other issues because of the too-new JDK. Noga Rotman just spent several hours working out for me that Eclipse not being able to find JUnit, even though it was installed and correctly on the classpath, was because of using the new JDK (the one that is causing these same issues).
关闭新闻提要确实解决了这个问题(根据@Pyves,从首选项-> 常规-> 新闻中取消选中“启用自动新闻轮询”),但请注意,由于太新的 JDK,您可能会遇到其他问题。Noga Rotman 刚刚花了几个小时为我解决了 Eclipse 无法找到 JUnit,即使它已安装并正确地安装在类路径上,是因为使用了新的 JDK(导致这些相同问题的那个)。
You can solve the underlying issue by uninstalling your current version of the JDK and installing an old version, then reinstalling Eclipse. If you have the Oracle JDK you can find uninstall instructions hereand and Java SE Development Kit 8u191 (which fixed my issues) is here.
您可以通过卸载当前版本的 JDK 并安装旧版本,然后重新安装 Eclipse 来解决根本问题。如果你有 Oracle JDK,你可以在这里找到卸载说明,Java SE Development Kit 8u191(它解决了我的问题)在这里。