vert-x3 / vertx-examples

Vert.x examples
Apache License 2.0
3.55k stars 2.09k forks source link

I packaged and ran the image through jlink, and the error occurred at startup #436

Closed TheBlindM closed 2 years ago

TheBlindM commented 2 years ago

I packaged and ran the image through jlink, and the error occurred at startup

errMsg: D:\study\JDKStudyN\jmodsTest\target\image5\bin>java.exe -m jmodsTest/com.mods.app.App Mar 29, 2022 4:54:11 PM io.netty.resolver.dns.DefaultDnsServerAddressStreamProvider <clinit> 警告: Default DNS servers: [/8.8.8.8:53, /8.8.4.4:53] (Google Public DNS as a fallback) Exception in thread "main" java.util.ServiceConfigurationError: io.vertx.core.spi.VerticleFactory: module io.vertx.core does not declareuses at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:589) at java.base/java.util.ServiceLoader.checkCaller(ServiceLoader.java:575) at java.base/java.util.ServiceLoader.<init>(ServiceLoader.java:504) at java.base/java.util.ServiceLoader.load(ServiceLoader.java:1692) at io.vertx.core/io.vertx.core.ServiceHelper.loadFactories(ServiceHelper.java:53) at io.vertx.core/io.vertx.core.ServiceHelper.loadFactories(ServiceHelper.java:42) at io.vertx.core/io.vertx.core.impl.VerticleManager.loadVerticleFactories(VerticleManager.java:48) at io.vertx.core/io.vertx.core.impl.VerticleManager.<init>(VerticleManager.java:44) at io.vertx.core/io.vertx.core.impl.VertxImpl.<init>(VertxImpl.java:177) at io.vertx.core/io.vertx.core.impl.VertxFactory.vertx(VertxFactory.java:78) at io.vertx.core/io.vertx.core.Vertx.vertx(Vertx.java:86) at io.vertx.core/io.vertx.core.Vertx.vertx(Vertx.java:76) at jmodsTest@1.0-SNAPSHOT/com.mods.app.App.main(App.java:15)