问题
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... picture
- Module Dependencies -> add System Module... picture
- add java.smartcardio (not javax.smartcardio) picture
- check Module -> Apply and Close picture
来源:https://stackoverflow.com/questions/58917664/eclipse-doesnt-recognize-smartcardio-library