You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@fipro78 may thanks for the report I think one solution could be to simply check for both (java + java.exe), I also think the message could be improved (as JAVA_HOME is there but just the executable was not found on the path).
I am running a Tycho build using 2.7.0 on Windows. Even with a JAVA_HOME environment variable set, the tycho log shows this.
"Could not find the Toolchain nor JAVA_HOME, trying java from PATH instead"
Looking into the AbstractTestMojo I can see this on line 1237:
Afterwards it is checked if the file exists, otherwise the message will be shown and Java will be resolved from the PATH.
On Windows the filename is java.exe
A possible solution would be to do an OS check to determine the filename:
Not sure if there is a more elegant or efficient way.
The text was updated successfully, but these errors were encountered: