Build environment for working with JavaCard for Fidesmo / VivoKey on OS X Using intelliJ IDE
Should also work under windows as long as you change paths in the build.properties file.
Contains both JCard kit 2.2.2 and 3.0.4 for working with Fidesmo products and the VivoKey implant along with the HelloFidesmo applet and test tool from their tutorial.
Simply import the project and buildfile in to intelliJ and things should work out of the box. The build.xml file needs some work and I will add a testing component that will run the final cap file through JCardSim asap.
Prerequisites:
- JDK version 8
Setup:
-
Install IntelliJ IDE
-
IMPORTANT! If you are running OS X. RENAME the IntelliJ App so that it is just named "IntelliJ" This is important as otherwise paths get messed up and things don't work. The path in build.properties: idea.home=/Applications/IntelliJ.app/Contents is important from what I can tell and having spaces in the APP name freaks things out.
-
Edit the setup.sh script and put your Fidesmo Developer details in the obvious place
-
Run the setup.sh script
-
Open the project in IntelliJ - do not import, just open as importing will overwrite the .idea folder which contains IDE settings.
There are three Run / Debug configurations
- Build Cap Files
This is an Ant task that will build a .cap file from a given targed defined in build.xml. In this case:
The above target can be copied and modified for any new source applets to be compiled in to .cap files. I recommend sticking to the existing folder structue and adding a new folder under src for each new applet.
- Simulate JavaCard
This will compile your .java source against JCardSim, run it and show you in the output in the intelliJ terminal. The Sim.java file and Run task can be copied for new applets - making sure to change line 23 in Sim.Java to point to the new applet classname.
- HelloFidesmo Test
For when you have installed the HelloFidesmo tutorial applet to a card / implant and want to run a test to see that everything is working.