Rahman USTA
2017-09-01 20:21:16 UTC
Hi,
I migrate TerminalFX <https://github.com/rahmanusta/TerminalFX> project to
Java 9. To run the project on Java 9 I'm following the steps:
mvn clean install dependency:copy-dependencies
java --module-path
%JAVA_HOME%/jmods;target\terminalfx.jar;target\dependency --add-modules
terminalfx -m terminalfx/com.terminalfx.AppStarter
It works normally. Then, I want to generate a jlink image with the
following script
jlink --module-path
%JAVA_HOME%/jmods;target\terminalfx.jar;target\dependency --add-modules
terminalfx --launcher terminalfx=terminalfx/com.terminalfx.AppStarter
--output target/release
However it gives me the following error;
Error: module-info.class not found for jackson.databind module
My module-info.java is:
module terminalfx {
requires jackson.annotations;
requires javafx.graphics;
requires javafx.controls;
requires javafx.fxml;
requires javafx.web;
requires jackson.core;
requires pty4j;
requires jackson.databind;
requires jna;
requires jdk.jsobject;
exports com.terminalfx;
exports com.terminalfx.config to jackson.databind;
}
and the project is located here in *java9* branch
https://github.com/rahmanusta/TerminalFX
How can I solve this issue?
Thanks.
I migrate TerminalFX <https://github.com/rahmanusta/TerminalFX> project to
Java 9. To run the project on Java 9 I'm following the steps:
mvn clean install dependency:copy-dependencies
java --module-path
%JAVA_HOME%/jmods;target\terminalfx.jar;target\dependency --add-modules
terminalfx -m terminalfx/com.terminalfx.AppStarter
It works normally. Then, I want to generate a jlink image with the
following script
jlink --module-path
%JAVA_HOME%/jmods;target\terminalfx.jar;target\dependency --add-modules
terminalfx --launcher terminalfx=terminalfx/com.terminalfx.AppStarter
--output target/release
However it gives me the following error;
Error: module-info.class not found for jackson.databind module
My module-info.java is:
module terminalfx {
requires jackson.annotations;
requires javafx.graphics;
requires javafx.controls;
requires javafx.fxml;
requires javafx.web;
requires jackson.core;
requires pty4j;
requires jackson.databind;
requires jna;
requires jdk.jsobject;
exports com.terminalfx;
exports com.terminalfx.config to jackson.databind;
}
and the project is located here in *java9* branch
https://github.com/rahmanusta/TerminalFX
How can I solve this issue?
Thanks.
--
Rahman USTA
Istanbul JUG
Rahman USTA
Istanbul JUG