← Back to issue list

Support setting JAVA_HOME in java plugin

View original Github issue

Metadata

Project
craft-parts
Number
#892
Type
issue
State
closed
Author
vpa1977
Labels
—
Created
Updated
Closed

Current evaluation

Java plugin JAVA_HOME support was merged in PR #895 via commit a3b9cdab, selecting the highest validated JDK found in the build environment.

Resolution: closed resolved

Reason: PR #895 was merged as commit a3b9cdab. It validates installed javac compilers by compiling a basic class, then sets JAVA_HOME to the highest-version JDK found.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done Set JAVA_HOME environment variable in Java plugin to JDK found in the build environment. - The plugin should examine build environment for java installation and validate that it is a valid JDK by checking ability of javac to compile a basic java file. - If multiple runtimes found, the plugin should use the highest one by default , unless overriden by user by setting JAVA_HOME environment variable in the plugin properties. ### Why it needs to get done - JRE (Java runtime environment) cannot not be used to compile Java projects and it is found in the stage environment. - Build should use consistent JDK version between subsequent builds

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Java plugin JAVA_HOME support was merged in PR #895 via commit a3b9cdab, selecting the highest validated JDK found in the build environment.
stealth/space-bunny-alpha — closed resolved Implemented in canonical/craft-parts#895 (a3b9cdab): the Java plugin now sets JAVA_HOME to a validated JDK found in the build environment.
qwen/qwen3.6-35b-a3b — — Closed and tracked internally via Jira CRAFT-3628. No implementation or resolution details were provided, indicating the feature request was abandoned.
qwen/qwen3.6-35b-a3b — — Closed and deferred to internal ticket CRAFT-3628. No public fix or merge occurred, indicating the feature request was abandoned or superseded by internal tracking.
qwen/qwen3.6-35b-a3b — — Closed without resolution. An internal ticket (CRAFT-3628) was created to track automatic JAVA_HOME detection and configuration. The feature request remains deferred pending further development.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. Logged internally as CRAFT-3628 and prioritized. No code changes or merges were applied on GitHub.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/craft-parts#895 (confidence 100%)

    Merged PR #895 implemented the requested Java plugin behavior in commit a3b9cdab.

Related issues

Issue Project State Summary Similarity
#895 feat: java plugin should set JAVA_HOME craft-parts merged Merged #895 as a3b9cdab, making Java plugins set JAVA_HOME to the latest valid JDK; it resolves #892 and adds OpenJDK dependencies and tests.
74%