Skip to content
Advertisement

Tag: runtime-error

How do I put something on an FX thread?

I’m new to JavaFX (trying to move from Swing), and am trying to make a very basic window first. However, I keep getting the following runtime exception: However, looking at the JFXPanel source code, the constructor calls its initFX() method, which initializes the FX application thread. Why, then, am I getting this error, and how do I fix it? Answer

What causes java.lang.IncompatibleClassChangeError?

I’m packaging a Java library as a JAR, and it’s throwing many java.lang.IncompatibleClassChangeErrors when I try to invoke methods from it. These errors seem to appear at random. What kinds of problems could be causing this error? Answer This means that you have made some incompatible binary changes to the library without recompiling the client code. Java Language Specification ยง13

Advertisement