Closed mvondracek closed 4 years ago
I did not get to the whole issue but take a look at this at first pls https://github.com/martinpaljak/ant-javacard/wiki/Version-compatibility
I think the best JDK for applet development is 1.8 due to the current state of tooling.
Moreover, make sure your gradle daemon has the same JDK version. Correctly configure your JAVA_HOME
env var.
I just published a new gradle-plugin to the maven repository which supports all ant-javacard properties on CAP. Try pulling the template. However, it may take some time for maven artifact to be available.
New plugin enables you to specify javaversion '1.7'
which fixes the compilation error but I have no clue whether it compiles applet well.
Also ant-javacard is not yet released with 3.1.0 SDK support, so it is not possible to use this one for now.
So for now I will close this issue as JDK 14 is not supported by SDKs as indicated https://github.com/martinpaljak/ant-javacard/wiki/Version-compatibility
To use Gradle JDK path, try ./gradlew -Dorg.gradle.java.home=/jdk_path_directory
and setting JAVA_HOME
env dir.
If there is another problem, pls reopen or create a new one. Thanks for the report!
Hello, thank you for preparing this template. Unfortunately, I was not able to build it with current version of JDK. Following bug was detected on tag
v0.2.0-edu
linked from PV204_04_Javacard_LABS_2020.pptx, slide 20, but occurs also on tagv0.2.1-edu
.I'm running Windows 10, InteliJ IDEA 2019.2.2, and JDK 14.
Running Gradle from CLI fails.
Running Gradle from InteliJ IDEA is fails.
So I upgrade Gradle wrapper.
Running upgraded Gradle from InteliJ IDEA fails:
Gradle CLI fails, too:
I tried downgrading my installation of Apace Ant from 1.10.7 to 1.9.6, according to your CI environment.
I still saw ant errors
(...) option 5 is no longer supported. Use 7 or later.
. I tried running CLI with debug logging and analyzed howjavac
is called with--source
and--target
So I try following test command:
I'm not familiar with Gradle build system yet, but I searched through the source code of this project and submodules. Unfortunately, I did not found where
-target 1.5 -source 1.5
is configured.Build fails with current JDK 14.
I tried to configure Gradle JVM to JDK 1.8 instead of upgrading it. It has no effect on CLI.
Running it from InteliJ seems to work
However, I still get warnings: