{"record":{"id":"b1afbbc8fec37b08","repo":"JetBrains/intellij-community","slug":"build-process-no-javac-path-found","errorCode":"build.process.no.javac.path.found","errorMessage":"Cannot determine path to ''tools.jar'' library for {0} ({1})","messagePattern":"Cannot determine path to ''tools\\.jar'' library for (.+?) \\((.+?)\\)","errorType":"exception","errorClass":"ExecutionException","httpStatus":null,"severity":"error","filePath":"java/compiler/impl/src/com/intellij/compiler/server/BuildManager.java","lineNumber":1400,"sourceCode":"            try {\n              compilerPath = ClasspathBootstrap.getResourcePath(\n                Class.forName(\"com.sun.tools.javac.api.JavacTool\", false, BuildManager.class.getClassLoader()));\n            }\n            catch (Throwable t) {\n              LOG.info(t);\n            }\n            if (compilerPath == null) {\n              throw new ExecutionException(JavaCompilerBundle.message(\"build.process.no.javac.found\"));\n            }\n          }\n          else {\n            compilerPath = ClasspathBootstrap.getResourcePath(systemCompiler.getClass());\n          }\n        }\n        else {\n          compilerPath = projectJdkType.getToolsPath(projectJdk);\n          if (compilerPath == null) {\n            throw new ExecutionException(\n              JavaCompilerBundle.message(\"build.process.no.javac.path.found\", sdkName, projectJdk.getHomePath()));\n          }\n        }\n      }\n\n      vmExecutablePath = projectJdkType.getVMExecutablePath(projectJdk);\n      project.getService(BuildManagerVersionChecker.class).checkArch(projectJdk.getHomePath());\n    }\n    else {\n      sdkName = forcedCompiledJdkHome;\n      compilerPath = Path.of(forcedCompiledJdkHome, \"lib/tools.jar\").toAbsolutePath().toString();\n      vmExecutablePath = Path.of(forcedCompiledJdkHome, \"bin/java\").toAbsolutePath().toString();\n      project.getService(BuildManagerVersionChecker.class).checkArch(forcedCompiledJdkHome);\n    }\n\n    var projectConfig = CompilerConfiguration.getInstance(project);\n    var config = CompilerWorkspaceConfiguration.getInstance(project);\n","sourceCodeStart":1382,"sourceCodeEnd":1418,"githubUrl":"https://github.com/JetBrains/intellij-community/blob/be881553f2a76ac8b4ea53950d93f0de78295c19/java/compiler/impl/src/com/intellij/compiler/server/BuildManager.java#L1382-L1418","documentation":"Error \"Cannot determine path to ''tools.jar'' library for {0} ({1})\" thrown in JetBrains/intellij-community.","triggerScenarios":"Compilation with the javac in-process compiler on JDK 8 needs tools.jar, but it cannot be located relative to the SDK home.","commonSituations":"The configured SDK points at a JRE directory, or the JDK installation is incomplete or was moved after being registered.","solutions":["Point the project SDK to a real JDK home directory that contains lib/tools.jar (JDK 8) instead of a JRE.","Re-add the JDK under File | Project Structure | Platform Settings | SDKs so its home path is resolved correctly."],"exampleFix":"Change the SDK home from C:/Program Files/Java/jre1.8.0 to C:/Program Files/Java/jdk1.8.0 which contains lib/tools.jar.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"be881553f2a76ac8b4ea53950d93f0de78295c19","analyzedAt":"2026-08-14T14:13:06.425Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}