atialus.so
atialus.so

Reputation: 221

Spring plugin in Eclipse cannot open pom.xml

I've installed the most popular plugin in Eclipse (Spring Tools 4.14.1) and i tried to create a new project and open the pom.xml and then it shows error and comes like

Failed to create the part's controls

The error shows like this. Why does this happen? How to fix it?

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)
    ...

Upvotes: 22

Views: 21217

Answers (2)

Suresh
Suresh

Reputation: 1601

I installed Dockerfile support files for eclipse and then I faced this issue where I'm unable to open my pom.xml file and got the exact error which OP has posted, then I followed what Mr. Howlger advised and installed the software from below link and now I'm able to resolve the issue.

http://download.eclipse.org/tm4e/snapshots/

Upvotes: 0

Garikina Rajesh
Garikina Rajesh

Reputation: 429

Spring Tools 4.14.1 is missing tm4e.

To install it, go to "Help → Install new software → Add URL: https://download.eclipse.org/tm4e/snapshots/. Click finish. Restart Eclipse.

Thanks to howlger for ideas from the question comments.

Upvotes: 42

Related Questions