Error: jlink requires a module descriptor ->
- User
Error: jlink requires a module descriptor ->
- Assistant
The error message "jlink requires a module descriptor" indicates that you are attempting to use the
jlinktool without a valid module descriptor in your project.jlinkis used to create custom runtime images in Java, and it requires your application to be modularized. This means your project needs to have amodule-info.javafile in its main source directory.Here's how you can resolve this issue:
-
Create a Module Descriptor:
-
Create a file named
module-info.javaat the root of your Java source directory.
-
-
- User
错误: 自动模块不能用于来自 file:///C:/Users/55347/.m2/repository/io/fair-acc/dataset/11.3.1/dataset-11.3.1.jar 的 jlink: io.fair_acc.dataset
- Assistant
The error message indicates that
jlinkis having an issue with an automatic module derived from a JAR file located in your local Maven repository. In this case, automatic modules are JARs that do not have amodule-info.classfile but are being used on the module path, andjlinkdoes not support them for creating custom runtime images.Here's how you can address this issue:
-
Check for a Modular Version:
-
- User
javafx jlink 手动 module 无法访问io.fair_acc.bench.Measurable 找不到io.fair_acc.bench.Measurable的类文件
- Assistant