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.)

  1. Right click on the project -> Configure Build Path... picture
  2. Module Dependencies -> add System Module... picture
  3. add java.smartcardio (not javax.smartcardio) picture
  4. check Module -> Apply and Close picture


来源:https://stackoverflow.com/questions/58917664/eclipse-doesnt-recognize-smartcardio-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!