following guideに従って、Java Card Platform Development Kitの新しいリリースをインストールしました。これには、JCDKのバージョン3.0.5u2だけでなく、すべての前提条件が含まれます。ヘッドアップとして、私は2つの異なるコンピュータ(1つはWin7、もう1つはWin10)にインストールし、両方ですべてを再インストールしました。EclipseでJava Cardのサンプルプロジェクトを構築できない
私が遭遇している問題は、サンプルプロジェクトのどれも正しく構築されないということです。私はHelloWorldサンプルをビルドしようとすると、例えば、私はビルドコンソールに印刷され、次のテキストを取得:
[ INFO: ] Converter [v3.0.5]
[ INFO: ] Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
[ INFO: ] conversion completed with 0 errors and 0 warnings.
[ INFO: ] Converter [v3.0.5]
[ INFO: ] Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
[ INFO: ] conversion completed with 0 errors and 0 warnings.
Missing file containing component hashes.
usage: scriptgen [-options] -hashfile <hash file path> <cap File Path>
where options include:
-help Print this message and exit.
-o <filename> Output filename. default: stdout
-version Print version number and exit.
-nobanner Do not print banner.
-nobeginend Suppress "CAP_BEGIN", "CAP_END" APDU commands.
-package <pkgname> Package name.
通常のコンソールは、これは言ってありますが:
Executing "$JC_CLASSIC_HOME\bin/converter.bat" -debug -nobanner -out CAP JCA -classdir "$JC_CLASSIC_HOME\samples\classic_applets\HelloWorld\applet\bin" -d "$JC_CLASSIC_HOME\samples\classic_applets\HelloWorld\applet\deliverables" -exportpath "$JC_CLASSIC_HOME\api_export_files" -applet 0xA0:0x00:0x00:0x00:0x62:0x03:0x01:0x0C:0x01:0x01 com.sun.jcclassic.samples.helloworld.HelloWorld com.sun.jcclassic.samples.helloworld 0xA0:0x00:0x00:0x00:0x62:0x03:0x01:0x0C:0x01 1.0
Executing "$JC_CLASSIC_HOME\bin/scriptgen.bat" -package com.sun.jcclassic.samples.helloworld -o "$JC_CLASSIC_HOME\samples\classic_applets\HelloWorld\applet\apdu_scripts/cap-com.sun.jcclassic.samples.helloworld.script" "$JC_CLASSIC_HOME\samples\classic_applets\HelloWorld\applet\deliverables/com/sun/jcclassic/samples/helloworld/javacard/helloworld.cap"
java.io.FileNotFoundException: $JC_CLASSIC_HOME\samples\classic_applets\HelloWorld\applet\apdu_scripts\cap-com.sun.jcclassic.samples.helloworld.script (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
... (stack trace)
さて、私は」私は100%確信していませんが、バージョン3.0.5u1がインストールされていたら、サンプルプロジェクトをビルドできたと思います。
ていますか?私はそれが例外で名前によって存在するとは思わないでしょう...あなたの環境変数をチェックし、変数を設定してください! –
私は実際のパスのプレースホルダとして上記の投稿に$ JC_CLASSIC_HOMEを使用しています。 JC_CLASSIC_HOMEは実際にはC:¥Program Files(x86)¥Oracle¥Java Card Development Kit 3.0.5u2¥を指す環境変数です。 – user2352164
DOS/Windowsは '%JC_CLASSIC_HOME%'を使用します。私はまだこれがちょうどenvだと思う。 var。 –