smartcardio

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

蹲街弑〆低调 提交于 2021-02-05 09:18:31
问题 What happened to the javax.smartcardio library from Java 9 onwards? Is there an alternative or some way to obtain it in JAR? 回答1: 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 回答2: After some hours searching on the web, thanks to the answer above,

javax.smartcardio.* is not found on Open JDK 11(Redhat)

天涯浪子 提交于 2020-02-02 12:39:03
问题 I am using Redhat's OpenJDK 11 to communicate with a smart card on the Windows. But I have a problem with compiling. It said cannot find javax.smartcardio library. Enviornment : Redhat OpenJDK 11, Intellij, Kotlin, Gradle > Task :compileKotlin e: ~\util\SmartCard.kt: (7, 14): Unresolved reference: smartcardio e: ~\util\SmartCard.kt: (13, 25): Unresolved reference: CardTerminal e: ~\util\SmartCard.kt: (13, 41): Unresolved reference: TerminalFactory e: ~\util\SmartCard.kt: (19, 51): Unresolved

javax.smartcardio.* is not found on Open JDK 11(Redhat)

三世轮回 提交于 2020-02-02 12:38:05
问题 I am using Redhat's OpenJDK 11 to communicate with a smart card on the Windows. But I have a problem with compiling. It said cannot find javax.smartcardio library. Enviornment : Redhat OpenJDK 11, Intellij, Kotlin, Gradle > Task :compileKotlin e: ~\util\SmartCard.kt: (7, 14): Unresolved reference: smartcardio e: ~\util\SmartCard.kt: (13, 25): Unresolved reference: CardTerminal e: ~\util\SmartCard.kt: (13, 41): Unresolved reference: TerminalFactory e: ~\util\SmartCard.kt: (19, 51): Unresolved

Eclipse doesn't recognize smartcardio library

…衆ロ難τιáo~ 提交于 2019-12-22 12:29:12
问题 After migration from Sun's jdk (1.8) to Openjdk12 - Eclipse does not recognize the whole library of "javax.smartcardio". for example: import javax.smartcardio.Card; will cause the errors Card cannot be resolved to a type The import javax.smartcardio cannot be resolved We've tried to add the "src.zip" to the JRE coniguration in the Eclipse, but its content does not appear in "Project Explorer"... 回答1: Eclipse-Version (Look at the pictures.) Right click on the project -> Configure Build Path...

Command APDU returning 6985 (Conditions of use not satisfied) in result

杀马特。学长 韩版系。学妹 提交于 2019-12-11 04:14:20
问题 I am working on reading a smart card in Java. When I execute the following code below, the card returns 6985 (Conditions of use not satisfied) as a result. TerminalFactory factory = TerminalFactory.getDefault(); List<CardTerminal> terminals = factory.terminals().list(); System.out.println("Terminals: " + terminals); if (terminals != null && !terminals.isEmpty()) { // Use the first terminal CardTerminal terminal = terminals.get(0); // Connect with the card Card card = terminal.connect("*");

Eclipse doesn't recognize smartcardio library

孤街浪徒 提交于 2019-12-06 09:47:23
After migration from Sun's jdk (1.8) to Openjdk12 - Eclipse does not recognize the whole library of "javax.smartcardio". for example: import javax.smartcardio.Card; will cause the errors Card cannot be resolved to a type The import javax.smartcardio cannot be resolved We've tried to add the "src.zip" to the JRE coniguration in the Eclipse, but its content does not appear in "Project Explorer"... Eclipse-Version (Look at the pictures.) Right click on the project -> Configure Build Path... picture Module Dependencies -> add System Module... picture add java.smartcardio ( not javax.smartcardio)