2017-03-17 90 views
0

我对Eclipse比较陌生,需要开发一个Javacard应用程序。我得到了eclipse neon和JDK8 + Java卡片开发包。我已经做了所有的教程安装,直到这个页面(含税)https://docs.oracle.com/javacard/3.0.5/guide/eclipse_java_card_plug-in.htm#JCUGC127,但是当我从Java卡目录导入项目样本它告诉我(例如用于你好世界一个):Eclipse:导入的javacard无法解析

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 

而且我得到了相似的输出与其他项目。我尝试了一些“解决方案”,比如清理项目等,但没有人解决这个问题。我很感激可能发生的一些提示,以及我必须做些什么。

在此先感谢。

回答

1

将api_xxx.jar添加到您的项目“Java构建路径”; 库“api_xxx.jar”位于JCKit_Dir/lib /。