在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):crocs-muni/javacard-gradle-template-edu开源软件地址(OpenSource Url):https://github.com/crocs-muni/javacard-gradle-template-edu开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):JavaCard Template project with GradleThis is simple JavaCard project template using Gradle build system. You can develop your JavaCard applets and build cap files with the Gradle! Moreover the project template enables you to test the applet with JCardSim or on the physical cards. Gradle project contains one module:
Features:
TemplateThe template contains simple Hello World applet generating random bytes on any APDU message received. There is also implemented very simple test that sends static APDU command to this applet - in JCardSim. The Gradle project can be opened and run in the IntelliJ Idea. Running in IntelliJ Idea gives you a nice benefit: Coverage! How to use
Building cap
./gradlew buildJavaCard --info --rerun-tasks Generates a new cap file Note: Typical output:
Installation on a (physical) card./gradlew installJavaCard Or inspect already installed applets: ./gradlew listJavaCard Running on simulator (jCardSim)As simple as: ./gradlew run By default the run task will run the main Java application implemented at: Running tests
Output:
DependenciesThis project uses mainly:
Kudos for a great work! JavaCard supportThanks to Martin Paljak's ant-javacard and oracle_javacard_sdks we support:
Supported Java versionsJava 8-u271 is the minimal version supported. Make sure you have up to date java version ( Only some Java versions are supported by the JavaCard SDKs. Check the following compatibility table for more info: https://github.com/martinpaljak/ant-javacard/wiki/Version-compatibility CoverageThis is a nice benefit of the IntelliJ Idea - gives you coverage results out of the box. You can see the test coverage on your applet code.
TroubleshootingIf you experience the following error:
Then try running JVM with In the IntelliJ Idea this can be configured in the top tool bar with run configurations combo box -> click -> Edit Configurations -> VM Options. However, the Invalid APDU loadedYou may experience error like this: This error is thrown by JCardSim which tries to load APDU class augmented with another methods. The augmented APDU version is contained in the JCardSim JAR.
However, if gradle-javacard-plugin v1.7.4 should fix this error. If you still experience this in IntelliJ Idea try: open project structure settings -> modules -> applet_test and move JCardSim to the top so it appears first on the classpath. This has to be done with each project reload from the Gradle. RoadmapTODOs for this project:
ContributionsCommunity feedback is highly appreciated - pull requests are welcome! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论