Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse doesn't recognize smartcardio library

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

like image 550
Shlomi Levy Avatar asked Jul 25 '26 08:07

Shlomi Levy


1 Answers

Eclipse-Version (Look at the pictures.)

  1. Right click on the project -> Configure Build Path... picture
  2. Module Dependencies -> add System Module... Add System Module...">picture
  3. add java.smartcardio (not javax.smartcardio) picture
  4. check Module -> Apply and Close Apply and Close">picture
like image 181
M Sezgin R Avatar answered Jul 27 '26 03:07

M Sezgin R



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!