{"record":{"id":"ba0b3989d8c2bb81","repo":"oracle/graal","slug":"java-home-is-not-reachable","errorCode":null,"errorMessage":"Java home is not reachable.","messagePattern":"Java home is not reachable\\.","errorType":"exception","errorClass":"AssertionError","httpStatus":null,"severity":"error","filePath":"sdk/src/org.graalvm.home/src/org/graalvm/home/impl/DefaultHomeFinder.java","lineNumber":188,"sourceCode":"                verbose(\"GraalVM home already set to: \", graalvmHomeValue);\n                home = Paths.get(graalvmHomeValue);\n            } else {\n                home = getGraalVmHomeNative();\n                verbose(\"Found GraalVM home: \", home);\n                if (home == null) {\n                    return null;\n                }\n            }\n            return home;\n        } else {\n            final String javaHomeProperty = System.getProperty(\"java.home\");\n            if (javaHomeProperty == null) {\n                throw new AssertionError(\"The java.home system property is not set\");\n            }\n\n            final Path javaHome = Paths.get(javaHomeProperty);\n            if (!Files.exists(javaHome)) {\n                throw new AssertionError(\"Java home is not reachable.\");\n            }\n\n            if (Files.exists(javaHome.resolve(Paths.get(\"lib\", \"modules\")))) {\n                home = javaHome;\n            } else {\n                throw new AssertionError(\"Missing jimage in java.home: \" + javaHome);\n            }\n\n            verbose(\"GraalVM home found by java.home property as: \", home);\n            return home;\n        }\n    }\n\n    @Override\n    public String getVersion() {\n        String res = version;\n        if (res == null) {\n            if (GRAALVM_VERSION != null) {","sourceCodeStart":170,"sourceCodeEnd":206,"githubUrl":"https://github.com/oracle/graal/blob/a66e9ccd1d7bf2552883939aa0788dfd0e294aab/sdk/src/org.graalvm.home/src/org/graalvm/home/impl/DefaultHomeFinder.java#L170-L206","documentation":"Error \"Java home is not reachable.\" thrown in oracle/graal.","triggerScenarios":"Thrown at sdk/src/org.graalvm.home/src/org/graalvm/home/impl/DefaultHomeFinder.java:188 when the library encounters an invalid state.","commonSituations":"Occurs when a caller violates the contract guarded by this check: Java home is not reachable.","solutions":["Fix the condition reported by the error: Java home is not reachable.","Check the throwing call site and ensure its documented preconditions (argument values, types, environment, or configuration) are satisfied before the call."],"exampleFix":"Validate inputs and environment so that the failing condition does not occur: Java home is not reachable.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a66e9ccd1d7bf2552883939aa0788dfd0e294aab","analyzedAt":"2026-08-14T13:58:47.161Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}