-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
javaToolchains task provides insufficient error information #15918
Comments
Do you get a stacktrace with |
I'll give that a try. But you do agree that the |
OK, I ran it again with
Build scan is here: https://scans.gradle.com/s/3noqksvu4xfay |
I manually reinstalled JDK 16 EA 33 and it seems to be working now. I suspect the problem was some kind of Windows permission error, but it would be very helpful if Gradle could log/output information about which test is failing when it determines the JDK path is invalid. (and, even better, it would be cool if Gradle could download EA builds of the JDK...) |
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution. |
This should help diagnosing issues with invalid JVM installations detections by the Java toolchains feature. Related to #15918
The fix provides some additional information as follows:
|
When I run (Windows, PowerShell)
I get the error message
but I don't get information specific enough to resolve the problem. Note that I can run
C:\Program Files\Java\jdk-16-ea-33\bin\java.exe'
successfully from the command-line.Expected Behavior
I expect to see the exact error that is occurring when
java.exe
is executed.Current Behavior
Context
I'm trying to debug the correct installation and configuration (via
-P
) of the java toolchain.Steps to Reproduce
This isn't really feasible -- I suspect the problem may be a permissions/configuration issue on Windows.
Your Environment
Build scan URL: https://gradle.com/s/buqlt74asquvq
The text was updated successfully, but these errors were encountered: