2

从 Sun 的 jdk (1.8) 迁移到 Openjdk12 后 - Eclipse 无法识别“javax.smartcardio”的整个库。

例如:

import javax.smartcardio.Card; 

会导致错误

Card cannot be resolved to a type

The import javax.smartcardio cannot be resolved

我们尝试将“src.zip”添加到 Eclipse 中的 JRE 配置中,但其内容未出现在“项目资源管理器”中...

4

1 回答 1

4

Eclipse 版本(看图片。)

  1. 右键项目->配置构建路径...图片
  2. Module Dependencies ->添加系统模块...图片
  3. 添加java.smartcardio(不是javax.smartcardio)图片
  4. 检查模块 -> 应用并关闭图片
于 2019-11-20T09:56:27.900 回答