Replies: 1 comment 2 replies
-
Not sure how your project is set up but I never saw that problem when using the charts lib. Instead of the output it would be good to have a simple example that let me reproduce the problem in Java. I use the charts lib myself in JDK11 and JDK16 without any problem but that's all Java projects that I build/run with either gradle or maven on Mac, Windows and Linux. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This seems like a standard JavaFX problem, however I only get this with charts. I did the following experiment - I coded an example that does not use any chart code. I then run this and it executes correctly. Next, I add the charts module and repeat the experiment. This time I get an error.
In both cases the application attempts to load the native library
prism_es2
. In the first case, after failing to load from the system cache it loads it as a resource from the libraries in the classpath.However, in the second case, the application tries to load the native library from the
java.library.path
and naturally it fails. So why the different behavior?I am including below the outputs of the two experiments. The first succeeds and the second fails. The first does not add the charts module while the second does. I have included the JVM command line arguments that I used.
Has anyone encpuntered this issue before?
TIA
Without charts works:
With charts fails:
Beta Was this translation helpful? Give feedback.
All reactions