question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NoClassDefFoundError: TextFlowLayout

See original GitHub issue

NoClassDefFoundError after updating to 0.10.1

I was using class InlineCssTextArea from your library. Previously i was using version 0.9.3 and it worked good, but when i tried to change to version 0.10.1, i get new error:

java.lang.NoClassDefFoundError: org/fxmisc/richtext/TextFlowLayout
	at org.fxmisc.richtext.TextFlowExt.textLayout(TextFlowExt.java:29) ~[richtextfx-0.10.0.jar!/:0.10.0]
	at org.fxmisc.richtext.TextFlowExt.getLineCount(TextFlowExt.java:35) ~[richtextfx-0.10.0.jar!/:0.10.0]
	at org.fxmisc.richtext.ParagraphText.getRangeShapeSafely(ParagraphText.java:377) ~[richtextfx-0.10.0.jar!/:0.10.0]
	at org.fxmisc.richtext.ParagraphText.getRangeShapeSafely(ParagraphText.java:329) ~[richtextfx-0.10.0.jar!/:0.10.0]
	at org.fxmisc.richtext.ParagraphText.updateSingleSelection(ParagraphText.java:325) ~[richtextfx-0.10.0.jar!/:0.10.0]
	at org.fxmisc.richtext.ParagraphText.lambda$new$1(ParagraphText.java:115) ~[richtextfx-0.10.0.jar!/:0.10.0]
	at com.sun.javafx.collections.MapListenerHelper$SingleChange.fireValueChangedEvent(MapListenerHelper.java:163) ~[javafx-base-11-linux.jar!/:na]
	at com.sun.javafx.collections.MapListenerHelper.fireValueChangedEvent(MapListenerHelper.java:72) ~[javafx-base-11-linux.jar!/:na]
	at com.sun.javafx.collections.ObservableMapWrapper.callObservers(ObservableMapWrapper.java:115) ~[javafx-base-11-linux.jar!/:na]
	at com.sun.javafx.collections.ObservableMapWrapper.put(ObservableMapWrapper.java:173) ~[javafx-base-11-linux.jar!/:na]
	at org.fxmisc.richtext.GenericStyledArea.lambda$createCell$43(GenericStyledArea.java:1440) ~[richtextfx-0.10.0.jar!/:0.10.0]
	at org.reactfx.util.NonAccumulativeStreamNotifications.lambda$head$0(NotificationAccumulator.java:134) ~[reactfx-2.0-M5.jar!/:na]

To add library to project, i am using maven

        <dependency>
            <groupId>org.fxmisc.richtext</groupId>
            <artifactId>richtextfx</artifactId>
            <version>0.10.1</version>
        </dependency>

Also interesting that, when i try to run application form intellij idea, everything work fine, but after application is build, this error will appear.

Environment info:

  • RichTextFX Version: 0.10.1
  • Operating System: Windows, Linux
  • Java version: 11

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
kuzmenkoGiftcommented, Jul 23, 2019

I was using version 2.1.3. When I changed the version to a newer one, it worked) Thank you very much for your help.

0reactions
Jugencommented, Jul 23, 2019

No problem 😃 What version of Spring Boot are you using ? There was a Spring Boot issue: Wrong entry may be loaded from multi-release jar files resulting in a NoClassDefFoundError which was fixed in version 2.1.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaFx RichText RunTime Error java.lang ... - Stack Overflow
I have a runtime error for java.lang.Exception: java.lang.NoClassDefFoundError: org/fxmisc/richtext/TextFlowLayout.
Read more >
JavaFx RichText RunTime Error java.lang.NoClassDefFoundError ...
I have a runtime error for java.lang.Exception: java.lang.NoClassDefFoundError: org/fxmisc/richtext/TextFlowLayout. I'm using java14 and JavaFx13.
Read more >
Wrong entry may be loaded from multi-release jar files ...
The infinispan-commons 9.4.3.Final jar seems to work because this jar is not a multi-release jar (and should be). In any case, Spring Boot...
Read more >
java.lang.NoClassDefFoundError | Wrong classpath - YouTube
java.lang. NoClassDefFoundError : Wrong classpath troubleshooting.
Read more >
how to solve java lang NoClassDefFoundError ... - YouTube
In this video i will teach you how to solve java.lang. NoClassDefFoundError : org/eclipse/tm4e/ui/utils/ContentTypeHelper error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found