Reputation: 397
I want to import javacardx.apdu
and javacardx.framework
in eclipse and use in applet in java card, how do this work? and how do I download .jar file to import.
thnaks
Upvotes: 2
Views: 872
Reputation: 93998
You cannot (usually) upload .jar
files. You need to convert the class files within a package to a .cap
file. This conversion is usually performed by the JCDK converter tool or a third party equivalent. It converts the byte code into Java Card compatible byte code and performs some early binding (using .exp
files delivered with the various libraries).
You may of compile against the api_classic.jar
found in the lib
fo lderof the JCDK to find out if your code compiles. Note that the name of the .jar
may differ for different versions of the JCDK - I've used the one for Java Card version 3, where the functionality has been split into the connected and classic API.
I strongly recommend you follow some tuturials and - of course - the book Java Card Technology for Smart Cards: Architecture and Programmer's Guide.
Upvotes: 1
Reputation: 178
You can find the JavaCard Development Kit here. The JCDK contains not only the APIs but also tools to help you build CAP files. You should read the documentation provided.
The jar file you look for is api_classic.jar and you should find it in the lib folder of the JCDK. You need to add it to your classpath so you can compile java card code.
Upvotes: 2