[ad_1]
I’m on a Mac and I’m using java 1.8.0_333. I’m trying to run a jar file with java -jar in the terminal but I’m getting this error:
Exception in Application init method
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:873)
Caused by: java.lang.RuntimeException: Exception in Application init method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:912)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$1(LauncherImpl.java:182)
at java.lang.Thread.run(Thread.java:750)
Caused by: java.lang.UnsatisfiedLinkError: dlopen(/var/folders/lq/6_jj02w93fl_clrlsthm_82c0000gn/T/jna-102528476/jna3490548316477581732.tmp, 0x0009): Symbol not found: __ZN3tbb4task13note_affinityEt
Referenced from: /private/var/folders/lq/6_jj02w93fl_clrlsthm_82c0000gn/T/jna-102528476/jna3490548316477581732.tmp
Expected in: /usr/local/Cellar/tbb/2021.5.0_1/lib/libtbb.12.5.dylib
at com.sun.jna.Native.open(Native Method)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:288)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:427)
at com.sun.jna.Native.register(Native.java:1647)
at com.sun.jna.Native.register(Native.java:1360)
at billiards.wrapper.Wrapper.<clinit>(Wrapper.java:25)
at billiards.viewer.Main.init(Main.java:30)
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:841)
... 2 more
It seems that the issue is that it can’t find a library, but I don’t know how to approach this. If anyone has any ideas on how to deal with this that would be great.
[ad_2]