0

I am using ControlsFX library for creating Notifications. When I launch project in IDE (NetBeans) everything is good, there is no exception. But when I launch project from jar java -jar <project>.jar I have such exceptions like that.

Code:

    Platform.runLater(new Runnable() {
        @Override
        public void run() {
            Notifications.create()
                    .title("Lorem")
                    .text("Ipsum")
                    .hideAfter(javafx.util.Duration.seconds(5))
                    .show();
        }
    });

P.S. Project was build with dependencies, also I tried to clean&build

N.B. Also in project I have another dependencies but there are no problems with launching them from jar

droppy
  • 21
  • 3

1 Answers1

0

According to FX Experiance, for JDK8 you have to use lib with version 8.40.14 and for JDK9-10 - 9.0.0.

So, for JDK 8u171 I choosed 8.40.14 and everything works great in both ways (from IDE and *.jar)

droppy
  • 21
  • 3