简体   繁体   English

javax.smartcardio 与 Java 9 和 ClassPath

[英]javax.smartcardio with Java 9 and ClassPath

Under Java 9, various default packages have been switched to Java EE packages (no longer included in JVM - optionally addable).在 Java 9 下,各种默认包已切换到 Java EE 包(不再包含在 JVM 中 - 可选择添加)。 This is not a problem for most of them because I simply specify the Java EE packages as dependencies.这对大多数人来说不是问题,因为我只是将 Java EE 包指定为依赖项。 With the said package javax.smartcardio , however, I didn't find anything where it could have landed (github-jee, no Maven search result,...).然而,使用上述包javax.smartcardio ,我没有找到任何它可以降落的地方(github-jee,没有 Maven 搜索结果,...)。 Can someone give me a tip where to get the latest version of the package?有人可以告诉我从哪里获得最新版本的软件包吗? Thank you much!非常感谢!

I have just found out that javax.smartcardio still exists as a module java.smartcardio .我刚刚发现javax.smartcardio仍然作为模块java.smartcardio存在。 However, this doesn't help me because I am still working with the ClassPath in my project and would have to work with Jigsaw to get it.但是,这对我没有帮助,因为我仍在我的项目中使用 ClassPath,并且必须使用 Jigsaw 才能获得它。

I verified that at runtime javax.smartcardio is available out of the box if you are on the classpath.我确认在运行时 javax.smartcardio 是开箱即用的,如果您在类路径上。
No --add-modules is required.不需要 --add-modules 。

Use a module-info.java to require the java.smartcardio module.使用module-info.java来要求java.smartcardio模块。 This worked for me.这对我有用。

I posted a bit more detailed answer here: https://stackoverflow.com/a/61721513/7287324我在这里发布了更详细的答案: https : //stackoverflow.com/a/61721513/7287324

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM