Native Image Agent Uses JAVA_HOME
Instead of GRAALVM_HOME
#581
Labels
enhancement
New feature or request
JAVA_HOME
Instead of GRAALVM_HOME
#581
Is your feature request related to a problem? Please describe.
When running
gradle -Pagent clean test
agent picksJAVA_HOME
even thoughGRAALVM_HOME
is set. The problem is that we can setJAVA_HOME
to some earlier version (lets say JDK17) andGRAALVM_HOME
to the later one (e.g. JDK21), and therefor agent will generate metadata with one JDK version while the Native Image will be created with the different one (example where different metadata can be generated with different Java versions).Describe the solution you'd like
Make
native-image-agent
useGRAALVM_HOME
as default if possible. Only ifGRAALVM_HOME
is not configured, useJAVA_HOME
.Describe alternatives you've considered
At least mention in the documentation that agent uses
JAVA_HOME
The text was updated successfully, but these errors were encountered: