EDIT: YOU CAN TRANSFER ON UPDATE 2018-02-13 AT THE END OF MAIL FOR UPDATED INFORMATION
I can provide full source code because this problem appeared in my open source JMarkPad project.
Find here
Problem
Basically:
- The building always works, I get a working .jar without any problems.
- Creating your own dist (start
gradle link
) WITHOUT third-party software (in this case, JFoenix) also works. - Creating your own dist (running
gradle link
) With third-party software (in this case, JFoenix) produces the following:
: linkAll
: JMarkPad: application: clean
: JMarkPad: application: compileJava
: JMarkPad: app: processResources
: JMarkPad: application: classes
: JMarkPad: :
: JMarkPad: :
:
: JMarkPad: : link FAILED
: linkAll FAILED
? , , , , .
.
Edit:
jlink app/ gradle.build:
commandLine "${java_home}/bin/jlink", '--module-path', "libs${File.pathSeparatorChar}${java_home}/jmods",
'--add-modules', 'app', '--launcher', 'app=app/ui.UI', '--output', 'dist', '--strip-debug',
'--compress', '2', '--no-header-files', '--no-man-pages'
2: :
9:28:38: Executing task 'link'...
:app:clean
:app:compileJava
:app:processResources
:app:classes
:app:jar
:app:link
Error: Module app not found
:app:link FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:link'.
> Process 'command 'C:\Program Files\Java\jdk-9.0.4/bin/jlink'' finished with non-zero exit value 1
* Try:
Run with
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
5 actionable tasks: 5 executed
Process 'command 'C:\Program Files\Java\jdk-9.0.4/bin/jlink'' finished with non-zero exit value 1
9:28:39: Task execution finished 'link'.
2018-02-13 UPDATE:
https://github.com/mayuso/JMarkPad/tree/java-9-integration
JFoenix, build.gradle:
https://github.com/mayuso/JMarkPad/blob/java-9-integration/build.gradle
:
https://github.com/mayuso/JMarkPad/tree/java-9-integration/libs
, gradle run
, gradle build
jlink, error: module not found: com.jfoenix
.
mantainers JFoenix, Java, Java 9 JLink, .
, ?
.