New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not infer Java runtime version for Java home directory #3133
Comments
What happens when you execute |
|
Can you execute |
sure. log.txt |
That is strange that I do not see "Could not infer Java runtime version" in the attached log |
Sorry you're right, it's because |
@wiiznokes Hi! Can you also try to run |
Thank you, it allowed me to understand the problem, my version of the jdk did not have the whole JVM, I think it was the one packaged with my distro. Thanks.
|
Previously some errors in checkRuntime task were reported as a nested exception. By default, Gradle shows only top-level error message of an exception, which made some errors confusing. For example, when javac was missing from JDK, Gradle only showed "Could not infer Java runtime version for Java home directory". The part that said javac was missing was only shown, when Gradle was run with --stacktrace argument. This is suboptimal UX, so this commit refactors checkRuntime to make error messages more descriptive. #3133
* Improve error messages when checking tasks Previously some errors in checkRuntime task were reported as a nested exception. By default, Gradle shows only top-level error message of an exception, which made some errors confusing. For example, when javac was missing from JDK, Gradle only showed "Could not infer Java runtime version for Java home directory". The part that said javac was missing was only shown, when Gradle was run with --stacktrace argument. This is suboptimal UX, so this commit refactors checkRuntime to make error messages more descriptive. #3133 * Handle JDK 1.8 correctly * Prebuild jdk version probe
Describe the bug
When I run
./gradlew packageReleaseAppImage
, I get this error messageMy project targets the JVM.
I don't understand because my
$JAVA_HOME
env variable is correct.Versions
Additional context
in my gradle file:
The text was updated successfully, but these errors were encountered: