Closed danielemaddaluno closed 3 years ago
You probably run Gradle with a Java distribution that doesn't contain the jpackage tool. In this case, you can specify the path to a JDK that provides jpackage by using one of the methods shown in the documentation. For example, you can set the environment variable BADASS_RUNTIME_JPACKAGE_HOME
, or you can configure jpackageHome
in your build.gradle:
runtime {
...
jpackage {
jpackageHome = "/usr/lib/jvm/jdk15"
...
}
}
Yeah...
it was my fault, I was using:
jpackageHome = "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/"
that has no jpackage.
This one worked perfectly fine:
jpackageHome = "/Library/Java/JavaVirtualMachines/liberica-jdk-15-full.jdk/Contents/Home/"
Thank you again!
I have imported in IntelliJ the project on my macOS. I have succesfully run
./gradlew runtime
that generates a working image. When I launch./gradlew jpackage
I got this error:What am I missing? Thank you in advance!