I'm attempting to write a program with jtouchbar, Maven and JavaFX and when I try to run the project with only the boilerplate code they include in the readme, I get an error
Exception in Application start method Caused by: java.lang.UnsatisfiedLinkError: Unable to open /lib/libJTouchBarJavaFX.dylib from jar file.
I went into the file directory to make sure that the file it's looking for is in the right place, and it is.
This is my start() method if its any help
public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
Scene scene = new Scene(fxmlLoader.load(), 320, 240);
stage.setTitle("Hello!");
stage.setScene(scene);
JTouchBar jTouchBar = new JTouchBar();
jTouchBar.setCustomizationIdentifier("MyJavaFXJavaTouchBar");
jTouchBar.addItem(new TouchBarItem(TouchBarItem.NSTouchBarItemIdentifierFlexibleSpace));
JTouchBarJavaFX.show(jTouchBar, null);
stage.show();
}
Any idea what I can do to fix this? Thanks in advance