Eclipse 内部错误“ Polling news feed”

我在我的 MacBook (High Sierra,Java11)上使用 Eclipse (4.9.0) ,这个错误有时会显示出来,如果我在另一个应用程序上,错误会创建一个“栈”,就像你在截图中看到的那样,返回到 Eclipse 并且每次都关闭这个错误是很烦人的。 有人能帮我解决这个问题吗?

The error showing up after a while using another app

70037 次浏览

This indeed seems to be an issue when Eclipse is run with Java 11. I have created Bug 539545 to report this.

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 polling option:

Preferences news feed disabling

The error window will no longer appear.

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.

As mentioned by @Pyves, the simple way would be unchecking "Enable automatic news polling" from the Preferences-> General -> News

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

enter image description here

Turning off the news feed does solve this problem (Per @Pyves, unchecking "Enable automatic news polling" from Preferences-> General -> News), but be 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).

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 here and and Java SE Development Kit 8u191 (which fixed my issues) is here.

For windows version Eclipse,

  1. Enter search key string "news"
  2. Check off "Enable automatic news polling"
  3. Click [Apply and Close] button.

That's it. enter image description here