Can jfreechart 1.5.3 be used with jlink to create a self contained executable? #374
-
I am adding charts to a large legacy project created in Netbeans and chose jfreechart. I have already migrated the project from Java 8 to JDK 15.0.2 and Netbeans 15, which included modularization. I added jlink to create a self contained executable so my customers don't have to install java. So far, all my installations are in Windows 10. When I compile (in Netbeans using Maven) I get the following error: Is there a way to modularize jfreechart so it doesn't rely on being an automatic module? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
JFreeChart version 2.0.0 is modular but not yet released. I haven't tried |
Beta Was this translation helpful? Give feedback.
-
I created a Hack that allowed me to build with jlink and include JFreeChart-1.5.3.
JLink now is happy and builds the project, which runs. I still have to verify that I can create a chart and display it. I will report back after I create some working charts. |
Beta Was this translation helpful? Give feedback.
-
My chart is displaying great (thank you to David Gilbert) |
Beta Was this translation helpful? Give feedback.
I created a Hack that allowed me to build with jlink and include JFreeChart-1.5.3.
JFreeChart
.JFreeChart/src/main/java/module-info.java
containing the followingorg.jfree.chart.servlet
requires jfreechart;
to my project'smodule-info.java
JLink now is happy and builds th…