javax.smartcardio in Java 9, 10, 11, 12… etc

后端 未结 2 876
情歌与酒
情歌与酒 2021-01-26 22:55

What happened to the javax.smartcardio library from Java 9 onwards? Is there an alternative or some way to obtain it in JAR?

2条回答
  •  一向
    一向 (楼主)
    2021-01-26 23:28

    After the java becomes "Modular Development", javax.smartcardio has also been modularized.

    If you want to use the package after java 9, create module-info.java.

    Please see the image.

    Or you can just degrade the compiler version to JDK 1.8:

    https://dzone.com/articles/java-9-modularity-jigsaw

提交回复
热议问题