-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Improve how the "java" executable is found #241
Comments
On Linux we can be very accurate using But don't do stuff like looking for |
@dmlloyd the idea is to traverse the system path to find the right executable (and before that check $JAVA_HOME/bin/ if exist). |
maybe you can use maven toolchains too ? |
you mean the ability to extract java home from maven? |
AFAIR the maven compiler plugin uses toolchains to determine the java executable but I do not know if it is the same problem here :) |
It's a good idea, I didn't look at it for years! A great opportunity to refresh my memory! |
Well that is an idea. :) My point was just that there is only an executable extension on Windows, so we should look specifically for |
I will first check with toolchain, it would be more reliable. |
I have added toolchain support with fallback to the java.home used to launch maven and I'm testing it on windows. |
Improve the java executable location logic, #241
This one has been fixed. |
… infos useful for spring developers. Related to quarkusio#241
Add --jfr for easy flight recording
…sy-microprofile PR quarkusio#241 (cherry picked from commit 9161d88)
Right now it expects
java
to be in the system path.there are two issues:
Something like:
would be more robust. I will work on a PR.
The text was updated successfully, but these errors were encountered: