status-im / status-keycard

Our Javacard Implementation for making secure transactions within Status and Ethereum
Apache License 2.0
213 stars 65 forks source link

How to compile on linux? javacard 3 not available #50

Closed anwfr closed 5 years ago

anwfr commented 5 years ago

This project depends on javacard 3.0.4. It seems that javacard 3 is not available for Linux (last release for linux is 2.2.2). Any hint to compile on linux?

antonio-fr commented 5 years ago

This can help if different from Oracle (windows jar) : https://github.com/martinpaljak/oracle_javacard_sdks/tree/master/jc304_kit

Also there'a a "ant" system which looks easy and fast : https://github.com/martinpaljak/ant-javacard

Similarly a javacard gradle plugin seems also interesting, "a wrapper on ant-javacard and Global Platform Pro, it is inspired by gradle-javacard" : https://github.com/bertrandmartel/javacard-gradle-plugin

bitgamma commented 5 years ago

The included gradle file has already been tested on Mac and Linux, all you need is the JCDK files. If you want to use the official distribution you could install the Windows version of the JCDK on a Windows machine and copy the installation folder over to Linux (or use Wine). The Windows specific tools are not used to build Keycard so that won't be a problem.

antonio-fr notifications@github.com 15 мая 2019 г. 23:46:05 написал:

This can help if different from Oracle (windows jar) : https://github.com/martinpaljak/oracle_javacard_sdks/tree/master/jc304_kit

Also there'a a "ant" system which looks easy and fast : https://github.com/martinpaljak/ant-javacard

Similarly a javacard gradle plugin seems also interesting, "a wrapper on ant-javacard and Global Platform Pro, it is inspired by gradle-javacard" : https://github.com/bertrandmartel/javacard-gradle-plugin

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

anwfr commented 5 years ago

Great! It worked by using javacard 3.0.4 files from https://github.com/martinpaljak/oracle_javacard_sdks/tree/master/jc304_kit Thanks! :)