Skip to content

Fix: Enhanced JAVA_HOME detection for IntelliJ IDEA integration #1608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

baasilali
Copy link

@baasilali baasilali commented Aug 6, 2025

Ready for review Powered by Pull Request Badge

Fix: Enhanced JAVA_HOME Detection for IntelliJ IDEA Integration

Fixes #1587

Quick Notes:

  • Detection runs once per configuration, cached
  • Only reads standard Java installation paths

see JAVA_HOME_DETECTION_FIX.md

Implements comprehensive JAVA_HOME detection to resolve issues where
IntelliJ IDEA cannot automatically detect Java installations when
importing Elide projects.

Key changes:
- Add multi-strategy JAVA_HOME detection script with platform-specific fallbacks
- Enhance IntelliJ IDEA integration configuration in build.gradle.kts
- Remove Java 17 incompatible JVM arguments from gradle.properties
- Support environment variables, system properties, and custom override files
- Add auto-generation of gradle.properties for sample projects

This fix eliminates the need for manual JAVA_HOME configuration when
running Kotlin main functions in IntelliJ IDEA across different operating
systems and Java installation patterns.

Addresses GitHub issue: JAVA_HOME not detected automatically in IntelliJ IDEA
@baasilali baasilali requested a review from sgammon as a code owner August 6, 2025 05:34
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.

IDEA: Doesn't pick up JAVA_HOME by default
1 participant