Skip to content

Add script to integrate mise Java with macOS java_home#24

Merged
paigeman merged 6 commits intomainfrom
23-support-java_home-integration-for-mise
Jan 22, 2026
Merged

Add script to integrate mise Java with macOS java_home#24
paigeman merged 6 commits intomainfrom
23-support-java_home-integration-for-mise

Conversation

@paigeman
Copy link
Owner

Provides link/unlink commands to integrate mise-managed Java installations
with macOS java_home system by creating symlinks in
/Library/Java/JavaVirtualMachines.

Usage:
./mise_java_home_integration.sh link # Link current mise Java
./mise_java_home_integration.sh unlink # Remove the integration

Features:

  • Follows mise official documentation
  • Verifies via java_home -V
  • Bash 3.2 and older macOS compatibility
  • Proper error handling and cleanup

  Provides link/unlink commands to integrate mise-managed Java installations
  with macOS java_home system by creating symlinks in
  /Library/Java/JavaVirtualMachines.

  Usage:
    ./mise_java_home_integration.sh link   # Link current mise Java
    ./mise_java_home_integration.sh unlink # Remove the integration

  Features:
  - Follows mise official documentation
  - Verifies via java_home -V
  - Bash 3.2 and older macOS compatibility
  - Proper error handling and cleanup
@paigeman paigeman requested a review from Copilot January 22, 2026 14:10
@paigeman paigeman linked an issue Jan 22, 2026 that may be closed by this pull request
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new shell script that integrates mise-managed Java installations with macOS's native java_home system by creating symbolic links in /Library/Java/JavaVirtualMachines.

Changes:

  • Adds a bash script with link/unlink commands for mise Java integration
  • Implements verification logic to check macOS recognition of linked JDK
  • Includes error handling and cleanup for failed operations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

paigeman and others added 2 commits January 22, 2026 22:17
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Jan 22, 2026

@paigeman I've opened a new pull request, #25, to work on those changes. Once the pull request is ready, I'll request review from you.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Jan 22, 2026

@paigeman I've opened a new pull request, #26, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI commented Jan 22, 2026

@paigeman I've opened a new pull request, #27, to work on those changes. Once the pull request is ready, I'll request review from you.

…ration script (#26)

* Initial plan

* Translate Chinese comments and messages to English

Co-authored-by: paigeman <53284808+paigeman@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: paigeman <53284808+paigeman@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Jan 22, 2026

@paigeman I've opened a new pull request, #28, to work on those changes. Once the pull request is ready, I'll request review from you.

@paigeman
Copy link
Owner Author

@copilot Add a item to the README.md under "脚本的类型" in Chinese

Copy link
Contributor

Copilot AI commented Jan 22, 2026

@paigeman I've opened a new pull request, #29, to work on those changes. Once the pull request is ready, I'll request review from you.

Add mise Java integration script to README.md script types section

Co-authored-by: paigeman <53284808+paigeman@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: paigeman <53284808+paigeman@users.noreply.github.com>
@paigeman paigeman merged commit 9b351e3 into main Jan 22, 2026
@paigeman paigeman deleted the 23-support-java_home-integration-for-mise branch January 22, 2026 14:44
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.

Support JAVA_HOME integration for mise

2 participants

Comments