I recently tried to install the Spring plugin (Spring Tools 4.14.1) in Eclipse and later tried to create new project with opening the pom.xml file, it is showing the below error:
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)
Spring plugin in Eclipse cannot open pom.xml because the tm4e is missing in Spring Plugin (Spring Tools 4.14.1).
If Spring plugin in Eclipse cannot open pom.xml , to fix this issue follow below steps:
- Go to the help option
- Click on the install new software
- Click on Add URL
- Add link https://download.eclipse.org/tm4e/snapshots/
- Click Finish Button.
Once above steps are completed, Restart the Eclipse application. These step should help you to fix above issue.