Error in convertionof .class to CAP file
we are using java_card_kit-2_2_1 with j2sdk-1.4.2_12 for developing Applet for Smart card.We are new to the javacard enviornment.We are testng with the avvailable samples in java card kit.
The steps we are following is given below:
1.Convertion of java file to class file.
Class file generated in the path- c:\java_card_kit-2_2_1\samples\src\com\sun\javacard\samples\Helloworld
2. convertion of class file to Cap file:
we are using one batch file -run.bat
run.bat:
set _CLASSES=%JC_HOME%\lib\apduio.jar;...;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\capdump.jar;
xcopy /s %JC_HOME%\api_export_files\*.* exp
java -classpath %_CLASSES% samples.src.com.sun.javacard.samples
converter -config HelloWorld.opt
3.We are running the run.bat file when exp folder is created having the .exp files init.
4.Then we are using the converter as:
converter -config ...HelloWorld.opt.
the .opt file contains..
-out EXP JCA CAP
-exportpath C:\java_card_kit-2_2_1\api_export_files
-applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1:0x1
com.sun.javacard.samples.HelloWorld.HelloWorld
com.sun.javacard.samples.HelloWorld
0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1 1.0
Then the error is generated as:
error:export file framework.exp of package javacard.framework not found.
the above run.bat file the line below needs explanation..
java -classpath %_CLASSES% samples.src.com.sun.javacard.samples
converter -config HelloWorld.opt
plz reply
Message was edited by:
jit_hk

