Open jan-tosovsky-cz opened 2 years ago
Not sure if this is best solution, but I simply added jdk.zipfs
to my module-info.java
as required module:
requires javafx.controls;
requires javafx.fxml;
requires java.xml;
// jdk.zipfs module is not auto-detected by default so adding explicitly here
requires jdk.zipfs;
It is then detected by jlink
and properly included in the final runtime image.
In my JavaFX app I do some ZIP processing, but hit
java.nio.file.ProviderNotFoundException
withjlink
created runtime becausejdk.zipfs
dependency was not properly auto-detected. https://stackoverflow.com/questions/57846630/java-nio-file-providernotfoundexception-with-jlink-created-runtime While the solution is clear, I have no idea if--add-modules jdk.zipfs
can be accomplished by the plugin.I'd be grateful to add an example for this into README.md or clearly state this is not possible. It would help others in the future.