在Eclipse中的某些文件中没有颜色高亮。

huangapple go评论62阅读模式
英文:

No color highlight in Eclipse in some files

问题

在一个拥有多个项目的工作空间中,我能正确地看到所有文件中的文本标记,除了一个文件,在该文件中只显示了有关特定项、类型和字符串的标记。

我已经尝试过的方法:

  • 检查文件是否是通过文本编辑器而不是 Java 编辑器打开的。是的,该文件是通过 Java 编辑器打开的
  • 重新启动 Eclipse。
  • 清理项目。

问题仍然存在。

问题:
在Eclipse中的某些文件中没有颜色高亮。

我期望的效果:
在Eclipse中的某些文件中没有颜色高亮。

非常感谢您的帮助和支持。

英文:

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:
在Eclipse中的某些文件中没有颜色高亮。

What I expect:
在Eclipse中的某些文件中没有颜色高亮。

Any help will be highly appreciated and voted.

答案1

得分: 1

错误日志 视图显示您正在使用来自Eclipse JustJ的 JRE 来运行您的 Eclipse。

问题在于您安装的是最小化而不是完整的 JDK。

或者,您可以eclipse.ini 中指定 Java 11 或更高版本的虚拟机来运行 Eclipse

JustJ OpenJDK Hotspot JRE Minimal (Stripped) 足以运行 Eclipse 安装程序和 Eclipse 平台,但无法在没有错误的情况下运行您所拥有的 Eclipse Java IDE。

最小化 意味着只包括了 Eclipse 平台所需的那些系统库模块,而完整 意味着完整的系统库。

英文:

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.

huangapple
  • 本文由 发表于 2020年9月18日 18:42:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/63954208.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定