This is a template project for Java Card development using IntelliJ IDEA IDE.
- Install latest 1.6.x Java SDK from here. (Java SE 6 Update xx JDK). 1.8 and next Java versions should also be ok. Just ensure javac can emit *.class files in 1.2 version (-source and -target command line switches)
- Open project using IDEA’s
File->Open project - Go to
Project->Project Structure->SDKsand add JDK you installed on step 1. If there is already something, you can delete it before adding newly installed JDK - Go to
File->Project Structure->Libraries. Remove current Classes entry. Then add eitherlib\Egate\lib\api.jaror\lib\jc221\lib\api.jardepending on the card type you develop applets for. - Click on the
helloWorld`` package in the Project view and press Shift-F6 to rename it to the name you like. The same goes toHelloWorld` applet. - Open `Common.properties`` file and setup everything you need there according to comments, including path to JDK installation folder. Uncomment/comment entries, that control which card platform is the target.
- Open
build.xml(this is anAntbuild package so you needAntplugin to be installed in IDEA) and correct entries, that follow${APPLETAIDPREFIX}to suit your AID. - To build applet, use
Antwindow on the right of the screen. Use binarize.all.egate to build applets for egate cards (experimental) andbinarize.all.standardfor Gemalto TOPs and similiar. - Target files will be in the \out\helloWorld\javacard folder where helloWorld is your package name
If you have more than one applet in the project, edit build.xml and add a second entry under each tag with the info you need.
Now you have build your applet using IDEA's menu 'Build -> Make project.