JavaPackager icon indicating copy to clipboard operation
JavaPackager copied to clipboard

Erro “require java runtime environment......” in 1.7.6-SNAPSHOT

Open Nonoas opened this issue 9 months ago • 4 comments

Discussed in https://github.com/fvarrui/JavaPackager/discussions/411

Originally posted by Nonoas May 25, 2024 I get the error too: image

plugin: io.github.fvarrui:javapackager:1.7.6-SNAPSHOT config:

tasks.register('packageMyApp', PackageTask) {
    dependsOn clean, jar
    // mandatory
    mainClass = mainClassName
    // optional
    modules = ["java.base", "java.management", "java.net.http", "java.scripting", "java.sql", "java.naming",
               "jdk.jsobject", "jdk.unsupported", "jdk.unsupported.desktop", "jdk.xml.dom"]
    bundleJre = true
    generateInstaller = false
    administratorRequired = false
    winConfig { createZipball = true }

}
java version "17" 2021-09-14 LTS
Java(TM) SE Runtime Environment (build 17+35-LTS-2724)
Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)

But, it works when i using .\jre\bin\java -jar worktools.exe to run it. so i think maybe the jre is no problem, and i don1t know have to fix

Nonoas avatar May 25 '24 07:05 Nonoas