No color highlight in Eclipse in some files

萝らか妹 提交于 2021-01-29 21:08:32

问题


In a workspace with several projects, I see correctly all the text markup in all files except one, where there is only the markup for specifiers, types and strings.

What I have already tried:

  • Check if the file is opened with the text editor instead of the Java editor. It's not. The file is opened with the Java Editor.
  • Restart Eclipse.
  • Clean the project.

The problem persists.

The problem:

What I expect:

Any help will be highly appreciated and voted.


回答1:


The Error Log view shows that you use a JRE from Eclipse JustJ to run your Eclipse.

The problem is that you have a minimal instead of a complete JDK installed.

Alternatively, you can specify the Java 11 or higher VM in the eclipse.ini to run Eclipse.

The JustJ OpenJDK Hotspot JRE Minimal (Stripped) is sufficient to run the Eclipse Installer and the Eclipse platform, but not to run the Eclipse Java IDE you have without errors.

Minimal means that only those system library modules are included that are required by the Eclipse platform and Complete means the full system library.



来源:https://stackoverflow.com/questions/63954208/no-color-highlight-in-eclipse-in-some-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!