0

我正在将我的应用程序从Java 1.8迁移到Java 11,在运行时我的一个外部 jar 上出现以下错误。

启动层初始化时出错 java.lang.module.ResolutionException: 模块 image.viewer 包含包 jcuda,模块 jcuda 将包 jcuda 导出到 image.viewer

这是我的Module.info课程

module image.viewer {

exports com.viewer;
exports com.viewer.backup;
exports com.viewer.backup.analyse;
exports com.viewer.compare;
exports com.viewer.controls;
exports com.viewer.database;
exports com.viewer.discovery;
exports com.viewer.events;
exports com.viewer.exif;
exports com.viewer.exportWorker;
exports com.viewer.external;
exports com.viewer.faceidentification;
exports com.viewer.gpuworker;
exports com.viewer.importers;
exports com.viewer.keypoints;
exports com.viewer.location;
exports com.viewer.model;
exports com.viewer.panes;
exports com.viewer.pool;
exports com.viewer.referenceDatabase;
exports com.viewer.registration;
exports com.viewer.renderers;
exports com.viewer.report;
exports com.viewer.search;
exports com.viewer.search.imfilters;
exports com.viewer.statistics;
exports com.viewer.surf;
exports com.viewer.tags;
exports com.viewer.thumbnail;
exports com.viewer.thumbnails;
exports com.viewer.util;
exports com.viewer.worker;
exports com.viewer.xmlWorker;

requires commons.dbcp;
requires ehcache;
requires eventbus;
requires transitive java.desktop;
requires java.sql;
requires java.activation;
requires java.xml;
requires java.xml.bind;
requires jna;
requires logback.classic;
requires logback.core;
requires lucene.core;
requires miglayout.swing;
requires slf4j.api;
requires snakeyaml;
requires com.fasterxml.jackson.core;
requires com.fasterxml.jackson.databind;
requires commons.io;
requires commons.lang3;
requires jdk.unsupported;
requires jgoodies.forms;
requires commons.collections4;
requires java.prefs;
requires jfreechart;
requires synthetica.base;
requires synthetica.theme.aluoxide;
requires synthetica.theme.blackeye;
requires synthetica.theme.dark;
requires synthetica.theme.plain;
requires WMI4Java;
requires jdk.security.auth;
requires commons.cli;
requires synthetica.addons.swingx;
requires synthetica.addons.base;
requires exiftool.lib;
requires javacsv;
requires poi;
requires poi.ooxml;
requires poi.scratchpad;
requires xmlbeans;
requires itextpdf;
requires mapsforge.core;
requires mapsforge.map;
requires mapsforge.map.awt;
requires mapsforge.map.reader;
requires opencv;
requires image.group.mk5;
requires image.face.age;
requires image.object;
requires image.zoning;
requires roi.detector;
requires rot.profile.age;
requires zt.zip;
requires webp.io;
requires opencsv;
requires psd.analizer;
requires xmlworker;
requires java.management;
requires jdk.management;
requires batik.dom;
requires batik.transcoder;
requires jackson.annotations;
requires org.glassfish.java.json;
requires gson;
requires OOXML;
requires image.jcuda;

opens com.viewer.model to snakeyaml, java.xml.bin;

}
4

0 回答 0