Eclipse:无法解析导入 javacard

Eclipse: the import javacard cannot be resolved

我对 eclipse 比较陌生,我需要开发一个 Javacard 应用程序。我得到了 eclipse neon 和 JDK8 + Java 卡开发工具包。我已经完成了所有教程安装,直到这个页面(包括在内)https://docs.oracle.com/javacard/3.0.5/guide/eclipse_java_card_plug-in.htm#JCUGC127 但是当我从 javacard 目录导入项目示例时它告诉我(例如 Hello World one):

APDU cannot be resolved to a type   
HelloWorld.java /HelloWorld/applet/src/com/sun/jcclassic/samples/helloworld line 65 Java Problem
Applet cannot be resolved to a type HelloWorld.java /HelloWorld/applet/src/com/sun/jcclassic/samples/helloworld line 29 Java Problem
ISO7816 cannot be resolved to a variable    HelloWorld.java /HelloWorld/applet/src/com/sun/jcclassic/samples/helloworld line 69 Java Problem
ISO7816 cannot be resolved to a variable    HelloWorld.java /HelloWorld/applet/src/com/sun/jcclassic/samples/helloworld line 70 Java Problem
ISO7816 cannot be resolved to a variable    HelloWorld.java /HelloWorld/applet/src/com/sun/jcclassic/samples/helloworld line 78 Java Problem
ISO7816 cannot be resolved to a variable    HelloWorld.java /HelloWorld/applet/src/com/sun/jcclassic/samples/helloworld line 80 Java Problem
The import javacard cannot be resolved  HelloWorld.java /HelloWorld/applet/src/com/sun/jcclassic/samples/helloworld line 20 Java Problem
The import javacard cannot be resolved  HelloWorld.java /HelloWorld/applet/src/com/sun/jcclassic/samples/helloworld line 21 Java Problem
The import javacard cannot be resolved  HelloWorld.java /HelloWorld/applet/src/com/sun/jcclassic/samples/helloworld line 22 Java Problem
The import javacard cannot be resolved  HelloWorld.java /HelloWorld/applet/src/com/sun/jcclassic/samples/helloworld line 23 Java Problem
The import javacard cannot be resolved  HelloWorld.java /HelloWorld/applet/src/com/sun/jcclassic/samples/helloworld line 24 Java Problem
The method register() is undefined for the type HelloWorld  HelloWorld.java /HelloWorld/applet/src/com/sun/jcclassic/samples/helloworld line 38 Java Problem
Util cannot be resolved HelloWorld.java /HelloWorld/applet/src/com/sun/jcclassic/samples/helloworld line 78 Java Problem

我在其他项目中得到了类似的输出。我尝试了一些 "solutions" 我在谷歌上搜索了清理项目等,但没有人解决这个问题。我会很感激一些关于可能发生的事情以及我必须做什么的提示。

提前致谢。

将 api_xxx.jar 添加到您的项目 "Java build path"; 图书馆 "api_xxx.jar" 位于 JCKit_Dir/lib/.