NoClassDefFoundError: TextFlowLayout
See original GitHub issueNoClassDefFoundError 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:
- Created 4 years ago
- Comments:11
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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