Title: setup-java does not set GRAALVM_HOME · Issue #1139 · actions/setup-java · GitHub
Open Graph Title: setup-java does not set GRAALVM_HOME · Issue #1139 · actions/setup-java
X Title: setup-java does not set GRAALVM_HOME · Issue #1139 · actions/setup-java
Description: Description: When setup-java installs graalvm-community it does not set GRAALVM_HOME. People like me who are migrating from graalvm/setup-graalvm@v1 will have builds that expect this env variable to be set. I believe the same issue will ...
Open Graph Description: Description: When setup-java installs graalvm-community it does not set GRAALVM_HOME. People like me who are migrating from graalvm/setup-graalvm@v1 will have builds that expect this env variable t...
X Description: Description: When setup-java installs graalvm-community it does not set GRAALVM_HOME. People like me who are migrating from graalvm/setup-graalvm@v1 will have builds that expect this env variable t...
Opengraph URL: https://github.com/actions/setup-java/issues/1139
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"setup-java does not set GRAALVM_HOME","articleBody":"**Description:**\n\nWhen `setup-java` installs `graalvm-community` it does not set `GRAALVM_HOME`. People like me who are migrating from `graalvm/setup-graalvm@v1` will have builds that expect this env variable to be set.\n\nI believe the same issue will be present for Oracle GraalVM, but I have not verified.\n\n**Task version:**\n\nv5.6.0\n\n**Platform:**\n- [x] Ubuntu\n- [x] macOS\n- [ ] Windows\n\n**Runner type:**\n- [x] Hosted\n- [ ] Self-hosted\n\n**Repro steps:** \n\nTun a build that requires `GRAALVM_HOME` to be set.\n\n**Expected behavior:**\n\nThe build to succeed, the same as it did when using `graalvm/setup-graalvm@v1`.\n\n**Actual behavior:**\n\nThe build fails (in my case by an invalid path to the `native-image` binary because my build is using `GRAALVM_HOME` to find it.)\n\n**Workaround:**\n\nUse:\n\n```\n - name: Set up Java (GraalVM)\n uses: actions/setup-java@v5\n with:\n distribution: ${{ matrix.distribution }}\n java-version: ${{ matrix.java-version }}\n cache: 'gradle'\n # `actions/setup-java` doesn't set `GRAALVM_HOME` so we'll do it explicitly.\n - name: Set GRAALVM_HOME\n run: echo \"GRAALVM_HOME=$JAVA_HOME\" >> \"$GITHUB_ENV\"\n```","author":{"url":"https://github.com/msgilligan","@type":"Person","name":"msgilligan"},"datePublished":"2026-07-20T22:15:44Z","url":"https://github.com/actions/setup-java/issues/1139"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:87040873-ccfe-a231-a44f-cbc07912b34d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E31A:2B6F5F:2D891EF:4021E3E:6AED2F8C |
| html-safe-nonce | 5e494e38ba270c613742ef483dfdac53071da64fe33f38060da6a8bddf396d63 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzFBOjJCNkY1RjoyRDg5MUVGOjQwMjFFM0U6NkFFRDJGOEMiLCJ2aXNpdG9yX2lkIjoiMjQzNDY2ODcwODIxNTIwNTc3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c6c0631bcc136e436a7bb83622683edddc93dc5cb66e3474ffc9c5513032d28b |
| hovercard-subject-tag | issue:4933514934 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-java/1139/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a407525d0eb37a67be322cce7b71e36d5e8ba8297c5c15ef47f3019d9e237152/actions/setup-java/issues/1139 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a407525d0eb37a67be322cce7b71e36d5e8ba8297c5c15ef47f3019d9e237152/actions/setup-java/issues/1139 |
| og:image:alt | Description: When setup-java installs graalvm-community it does not set GRAALVM_HOME. People like me who are migrating from graalvm/setup-graalvm@v1 will have builds that expect this env variable t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msgilligan |
| hostname | github.com |
| expected-hostname | github.com |
| None | e51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/setup-java git https://github.com/actions/setup-java.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 196057608 |
| octolytics-dimension-repository_nwo | actions/setup-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 196057608 |
| octolytics-dimension-repository_network_root_nwo | actions/setup-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ebb7b901cc154ecc179a44f266fcf69f343b30 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width