在某些文件中,Eclipse 中没有颜色突出显示 [英] No color highlight in Eclipse in some files

查看:38
本文介绍了在某些文件中,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.

我已经尝试过的:

  • 检查文件是否使用文本编辑器而不是 Java 编辑器打开.它不是.使用 Java 编辑器打开文件.
  • 重新启动 Eclipse.
  • 清理项目.

问题依旧.

问题:

我的期望:

任何帮助都将受到高度赞赏和投票.

Any help will be highly appreciated and voted.

推荐答案

错误日志 视图显示您使用来自 Eclipse JustJ 来运行您的 Eclipse.

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

问题是您安装了最小的而不是完整的 JDK.

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

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

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

JustJ OpenJDK Hotspot JRE Minimal (Stripped) 足以运行 Eclipse 安装程序和 Eclipse 平台,但不足以运行您拥有的 Eclipse Java IDE 且没有错误.

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 表示仅包含 Eclipse 平台所需的那些系统库模块,Complete 表示完整的系统库.

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

这篇关于在某些文件中,Eclipse 中没有颜色突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆