Eclipse doesn't recognize smartcardio library

4.7k views Asked by At

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

There are 1 answers

0
M Sezgin R On

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