我已经安装了Eclipse中最流行的插件(Spring Tools 4.14.1),我尝试创建一个新项目并打开pom.xml,然后它显示错误并显示如下Failed to create the part's controls
错误显示如下。为什么会出现这种情况?如何修复?
java.lang.NoClassDefFoundError: org/eclipse/tm4e/ui/utils/ContentTypeHelper
at org.eclipse.tm4e.languageconfiguration.LanguageConfigurationCharacterPairMatcher.findContentTypes(LanguageConfigurationCharacterPairMatcher.java:134)
at org.eclipse.tm4e.languageconfiguration.LanguageConfigurationCharacterPairMatcher.getMatcher(LanguageConfigurationCharacterPairMatcher.java:113)
at org.eclipse.tm4e.languageconfiguration.LanguageConfigurationCharacterPairMatcher.match(LanguageConfigurationCharacterPairMatcher.java:47)
at org.eclipse.jface.text.source.MatchingCharacterPainter.paint(MatchingCharacterPainter.java:313)
at org.eclipse.jface.text.PaintManager.addPainter(PaintManager.java:207)
...
1条答案
按热度按时间5f0d552i1#
缺少Spring工具4.14.1
tm4e
。要安装它,请转到“帮助→安装新软件→添加URL:https://download.eclipse.org/tm4e/snapshots/。按一下“完成”。重新启动Eclipse。
感谢howlger从问题评论中提出的想法。