Skip to content

Update Python wrapper to respect JAVA_HOME - #1110

Merged
bocchino merged 9 commits into
release/v3.3.1from
issue-1107-python-wrapper
Sep 17, 2026
Merged

bocchino merged 9 commits into
release/v3.3.1from
issue-1107-python-wrapper

Conversation

@bocchino

Copy link
Copy Markdown
Collaborator

Closes #1107.

@bocchino
bocchino requested a review from LeStarch September 14, 2026 23:17
@bocchino bocchino changed the title Issue 1107 python wrapper Update Python wrapper to respect JAVA_HOME Sep 14, 2026
@bocchino bocchino added the blocked Issue is blocked pending resolution of another issue label Sep 14, 2026
@bocchino

Copy link
Copy Markdown
Collaborator Author

I'm blocking this PR until I understand the implications of this change. See the discussion in #1107.

Enable error output
Don't set JAVA_HOME
@bocchino

Copy link
Copy Markdown
Collaborator Author

After some discussion with Claude, I'm OK with the general approach, but I wonder if we should have more error reporting. Also of note:

  • Checking for Java versions will add startup overhead to the tools, and we've already seen that the JVM tools are slow.
  • Claude points out that at least when JAVA_HOME is used, one can read the version from a file inside JAVA_HOME, and that's faster than probing java for the version. We may be able to use that, but it may not work when JAVA_HOME is not set.

@bocchino

Copy link
Copy Markdown
Collaborator Author

A minimal approach to reporting (with no extra overhead) might be to say, in the error case, where we got the java from (JAVA_HOME or the PATH). That would at least say precisely what is wrong.

@bocchino bocchino removed the blocked Issue is blocked pending resolution of another issue label Sep 15, 2026
@bocchino

Copy link
Copy Markdown
Collaborator Author

After discussion, we will report the source of the java (JAVA_HOME or path).

@bocchino
bocchino marked this pull request as draft September 15, 2026 01:26
@bocchino
bocchino marked this pull request as ready for review September 15, 2026 04:36
@bocchino
bocchino requested a review from thomas-bc September 16, 2026 21:53
@bocchino
bocchino requested a review from Kronos3 September 16, 2026 21:53
@bocchino
bocchino merged commit 2109691 into release/v3.3.1 Sep 17, 2026
16 checks passed
@bocchino
bocchino deleted the issue-1107-python-wrapper branch September 17, 2026 00:50
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.

3 participants