Fix: Spring plugin in Eclipse cannot open pom.xml OR java.lang.noclassdeffounderror: org/eclipse/tm4e/ui/utils/contenttypehelper

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:

  1. Go to the help option
  2. Click on the install new software
  3. Click on Add URL
  4. Add link https://download.eclipse.org/tm4e/snapshots/
  5. Click Finish Button.

Once above steps are completed, Restart the Eclipse application. These step should help you to fix above issue.