A program based on JDK 9 (JPMS) using some third-party banks, such as Apache (poi-3.17.jar, commons-io-2.6.jar) and HikariCP (HikariCP-3.1.0.jar), using the IDE (Intellij ) I "demand" them, and the program works fine. When I try to get my Customeized JRE using java9 'jlink', I get the following:
/out$ jlink --module-path production --add-modules
studyModule,java.base,java.datatransfer,java.desktop,java.logging,
java.scripting,java.sql,java.xml,java.prefs,javafx.base,
javafx.controls,javafx.fxml,javafx.graphics,javafx.media,
javafx.swing,javafx.web,jdk.jsobject,jdk.xml.dom,jdk.unsupported
--output studyJre
Error: module-info.class not found for com.zaxxer.hikari module
/out$ jlink --module-path production --add-modules
studyModule,java.base,java.datatransfer,java.desktop,java.logging,
java.scripting,java.sql,java.xml,java.prefs,javafx.base,
javafx.controls,javafx.fxml,javafx.graphics,javafx.media,
javafx.swing,javafx.web,jdk.jsobject,jdk.xml.dom,jdk.unsupported
--output studyJre
Error: module-info.class not found for poi module
questions: why do these IDE packages work fine? if they were not modulated, then they should also not work in the IDE.
PS: I added these banks to the "root" folder when working with jlink.