CAUTION:
You must also make sure that no other program accesses your smart card reader -- some type of driver program perhaps.
Another problem is the CommAPI itself which can cause a lot of trouble on some platforms (does not recognize ports, hangs,...).
Regards,
Jacek.
hi durangoVa!
i've solved the problem for jcwde and apdutool.all these things run correctly and i c the hexa digits running in my screen.i've got a silly querry to ask u ............ does it indicates that the file works when its loaded on to the card?
above things works when i perform the action with the examples.
now i got myself into a strange situation.i compiled the java card program and when i try to convert the class file, all i get is the options and other attributes running.i tried all sorts of options - yet there is no change in the result.
suggest me how to solve it.
cheers mate
- naga
hi durangoVa!
i have attached the result of file i ran
I:\JAVA_C~1\BIN>converter -config studentrecord.opt
Usage: converter <options> package_name package_aid major_version.minor_version
OR
converter -config <filename>
use file for all options and parameters to converter
Where options include:
-classdir <the root directory of the class hierarchy>
set the root directory where the Converter
will look for classes
-isupport the 32-bit integer type
-exportpath <list of directories>
list the root directories where the Converter
will look for export files
-exportmapuse the token mapping from the pre-defined export
file of the package being converted. The converter
will look for the export file in the exportpath
-applet <AID class_name>
set the applet AID and the class that defines the
install method for the applet
-d <the root directory for output>
-out [CAP] [EXP] [JCA]
tell the Converter to output the CAP file,
and/or the JCA file, and/or the export file
-V, -version print the Converter version string
-v, -verbose enable verbose output
-help print out this message
-nowarninstruct the Converter to not report warning messages
-mask indicate this package is for mask, so restrictions on
native methods are relaxed
-debugenable generation of debugging information
-nobannersuppress all standard output messages
-noverifyturn off verification. Verification is default
the .opt file has the following
-exportpath I:\java_card_kit-2_2\samples\classes\com\sun\javacard\samples\StudentRecord\javacard;
-out EXP JCA CAP
-applet 0xa0:0x00:0x0:0x0:0x62:0x3:0x1:0xc:0x07:0x01 com.sun.javacard.samples.studentrecord.StudentRecord
com.sun.javacard.samples.studentrecord
0xa0:0x00:0x0:0x0:0x62:0x3:0x1:0xc:0x07:0x01
i am using the javacard directory to have all the exp,jca,cap files
help me durangoVa
thx
- naga
herez my opt file ........
-exportpath I:\java_card_kit-2_2\samples\classes\com\sun\javacard\samples\StudentRecord\javacard;I:\java_card_kit-2_2\api_export_files
-out EXP JCA CAP
-applet 0xB0:0x00:0x01:0x0:0x52:0x3:0x1:0xc:0x07:0x01 com.sun.javacard.samples.studentrecord.StudentRecord
com.sun.javacard.samples.studentrecord
0xB0:0x00:0x01:0x0:0x52:0x3:0x1:0xc:0x07:0x01
by the way is major and minor necessary coz i am using a configuration file? if so, tell me how to assign it
cheers
- naga
Look at the sample opt files that are provided in the samples directory
--
Usage: converter <options> package_name package_aid major_version.minor_version
should read:
-exportpath I:\java_card_kit-2_2\samples\classes\com\sun\javacard\samples\StudentRecord\javacard;I:\java_card_kit-2_2\api_export_files
-out EXP JCA CAP
-applet 0xB0:0x00:0x01:0x0:0x52:0x3:0x1:0xc:0x07:0x01 com.sun.javacard.samples.studentrecord.StudentRecord <-- should change this to own package
com.sun.javacard.samples.studentrecord<-- should change to own package
0xB0:0x00:0x01:0x0:0x52:0x3:0x1:0xc:0x07:0x01 1.0 <-- major.minor
hi!
still i couldnt resolve the problem durangoVa.
i have a suggestion, the only option left out.
i will mail u the concerned files and if u dont mind would u convert it and send it to me?
i have no other way to than to ask for this
awaiting ur reply
thx
- naga
I got your code and you didn't follow my previous post.
DON'T USE THE COM.SUN PACKAGE.
That means in your CODE as well as in the OPT file.
Put things in a Student package. Also, based on what I could see, the only setting required for your exportpath is the I:\java_card_kit-2_2\api_export_files, remove the other one.
What do you mean "you couldn't get a clear result ?" Either the build_samples works or it doesn't.
Compare the sample opt files provided with the Sun JC kit to your opt file. Remove all references to com.sun in your code. Put it in a package called Student. Change your -exportpath to reflect your package. I don't believe you understand what a package is because when you sent me your code it was zipped in a Student sub directory, but you had com.sun....in your code. Doesn't match.
You never tell me if the build_samples.bat works. Therefore I get the feeling you aren't investigating this to the fullest before you post. READ the developers guide, it lays it out fine, as well as the samples. STUDY the samples.