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
Fix JDK extraction to handle different archive structures
Improve JDK extraction logic to properly handle different archive
structures across platforms:
- macOS JDKs often have Contents/Home/ directory structure
- Linux/Windows JDKs may have different nesting levels
- SDKMAN JDKs can vary by vendor and platform
Changes:
- Extract to temporary location first
- Search for actual JDK root (where bin/java exists) up to 3 levels deep
- Move the correct JDK root to final location
- This handles macOS Contents/Home structure and other variations
Fixes: JAVA_HOME pointing to wrong directory level causing
'JAVA_HOME/bin/java does not exist' errors on macOS
0 commit comments