Trying to build a Hello World exe file for Windows, using OpenJDK, because I want to minimize anything Oracle. I use IntelliJ IDEA Edu 2020.1 build 14 April.
Creating a new project I choose Kotlin > Native Gradle and openjdk-14.
This creates a new project, but with an error message:
“Invalid Gradle JDK configuration found.”
I go to the Gradle settings and (again) apply the openjdk-14 and click “Reimport Gradle Project”.
It starts building, but ends with the message:
“Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7”
From the Command window I type “gradle -v” and get this output:
Build time: 2020-05-15 19:43:40 UTC
Ant: Apache Ant™ version 1.10.7 compiled on September 1 2019
JVM: 14.0.1 (Oracle Corporation 14.0.1+7)
OS: Windows 8.1 6.3 amd64
What’s going wrong here?