首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Netty不使用Java 17模块JDK

Netty不使用Java 17模块JDK
EN

Stack Overflow用户
提问于 2022-05-12 14:33:44
回答 1查看 478关注 0票数 0

Netty与JDK 17的拆分包问题。它是非模块化的jar,我正在尝试将它包含在我的模块化项目中。我添加了一个模块-info.java,然后包括在下面所需的

代码语言:javascript
复制
module mycustommodule {
    requires io.netty.buffer;
    requires io.netty.transport;
}
代码语言:javascript
复制
error: the unnamed module reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.all reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.dns reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.haproxy reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.http reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.http2 reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.memcache reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.mqtt reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.redis reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.smtp reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.socks reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.stomp reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.codec.xml reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.common reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.handler reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.handler.proxy reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.resolver reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.resolver.dns reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.transport.rxtx reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.transport.sctp reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.transport.udt reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.transport.classes.epoll reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.transport.unix.common reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.transport.classes.kqueue reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.resolver.dns.classes.macos reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.transport reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
error: module io.netty.buffer reads package io.netty.handler.codec.xml from both io.netty.codec.xml and io.netty.codec
EN

回答 1

Stack Overflow用户

发布于 2022-07-29 12:43:53

这是因为io.netty jars不是模块。如果你用7-zip之类的东西窥视它们的内部,你就不会看到一个模块信息类文件。然而,“要求”期望这些是模块。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72217535

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档