You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Greetings and thank you for your work.
I've got an error with the new version of OpenPDF.
Error: automatic module cannot be used with jlink: com.github.librepdf.openpdf from [...]/repository/com/github/librepdf/openpdf/2.0.2/openpdf-2.0.2.jar
It worked with version 1.3.30. Beyond that it's not working anymore.
Is it possible to fix it? Because it was very practical.
Regards.
Edit:
Okay, found a little fix but that's not great.
By defining static in my module-info requires static com.github.librepdf.openpdf;;
By adding <options>-classpath openpdf-2.0.2.jar --module-path openpdf-2.0.2.jar --add-modules com.github.librepdf.openpdf</options> for the javafx-maven-plugin in my pom (and of course the jar inside the correct directory)
The text was updated successfully, but these errors were encountered:
This is a good question. In 1.3.30 there was some module-info.java files, but these aren't there anymore. These must have been removed by accident in some old PR.
@Dev-jero
It seems the module-info.java's were removed in 1.3.37. So until 1.3.36 you shouldn't have any problem.
But now we split OpenPDF in 3 different Versions:
1.3-line: compiled with Java 8
1.4-line: compiled with Java 11
2.0-line: compiled with Java 17
So the module-info makes no sense in 1.3 anymore, but probably in 1.4 and 2.0
Greetings and thank you for your work.
I've got an error with the new version of OpenPDF.
Error: automatic module cannot be used with jlink: com.github.librepdf.openpdf from [...]/repository/com/github/librepdf/openpdf/2.0.2/openpdf-2.0.2.jar
It worked with version 1.3.30. Beyond that it's not working anymore.
Is it possible to fix it? Because it was very practical.
Regards.
Edit:
Okay, found a little fix but that's not great.
requires static com.github.librepdf.openpdf;
;<options>-classpath openpdf-2.0.2.jar --module-path openpdf-2.0.2.jar --add-modules com.github.librepdf.openpdf</options>
for the javafx-maven-plugin in my pom (and of course the jar inside the correct directory)The text was updated successfully, but these errors were encountered: