简体   繁体   中英

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). This is not a problem for most of them because I simply specify the Java EE packages as dependencies. With the said package javax.smartcardio , however, I didn't find anything where it could have landed (github-jee, no Maven search result,...). 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 . 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.

I verified that at runtime javax.smartcardio is available out of the box if you are on the classpath.
No --add-modules is required.

Use a module-info.java to require the java.smartcardio module. This worked for me.

I posted a bit more detailed answer here: https://stackoverflow.com/a/61721513/7287324

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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