We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c7ca41 commit 82dcb55Copy full SHA for 82dcb55
server/src/main/kotlin/org/javacs/kt/compiler/Compiler.kt
@@ -119,6 +119,11 @@ private class CompilationEnvironment(
119
// configure jvm runtime classpaths
120
configureJdkClasspathRoots()
121
122
+ // Kotlin 1.8.20 requires us to specify the JDK home, otherwise java.* classes won't resolve
123
+ // See https://github.com/JetBrains/kotlin-compiler-server/pull/626
124
+ val jdkHome = File(System.getProperty("java.home"))
125
+ put(JVMConfigurationKeys.JDK_HOME, jdkHome)
126
+
127
addJvmClasspathRoots(classPath.map { it.toFile() })
128
addJavaSourceRoots(javaSourcePath.map { it.toFile() })
129
0 commit comments