Moving to Java 9 - module-info.class not found for <module-name> module
Rahman USTA
rahman.usta.88 at gmail.com
Fri Sep 1 20:21:16 UTC 2017
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.
--
Rahman USTA
Istanbul JUG
More information about the jigsaw-dev
mailing list