Skip to content

Conversation

@zechtz
Copy link
Owner

@zechtz zechtz commented Nov 7, 2025

  • Detect when JAVA_HOME or java executable points to asdf shims directory
  • Use 'asdf which java' to resolve shims to actual Java installation
  • Add support for SDKMAN Java installations
  • Properly infer JAVA_HOME from resolved paths
  • Fixes services failing with "JAVA_HOME not defined correctly" when using asdf

This resolves the issue where Vertex inherited JAVA_HOME pointing to /.asdf/shims instead of the actual Java installation path like /.asdf/installs/java/openjdk-21, causing Maven and Gradle wrappers to fail.

- Detect when JAVA_HOME or java executable points to asdf shims directory
- Use 'asdf which java' to resolve shims to actual Java installation
- Add support for SDKMAN Java installations
- Properly infer JAVA_HOME from resolved paths
- Fixes services failing with "JAVA_HOME not defined correctly" when using asdf

This resolves the issue where Vertex inherited JAVA_HOME pointing to
/.asdf/shims instead of the actual Java installation path
like /.asdf/installs/java/openjdk-21, causing Maven and
Gradle wrappers to fail.
@zechtz zechtz closed this pull request by merging all changes into main in b901715 Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants