diff --git a/compiler/tests/org/jetbrains/kotlin/cli/LauncherScriptTest.kt b/compiler/tests/org/jetbrains/kotlin/cli/LauncherScriptTest.kt index 745e7754daf..55cc255baa6 100644 --- a/compiler/tests/org/jetbrains/kotlin/cli/LauncherScriptTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/cli/LauncherScriptTest.kt @@ -34,7 +34,7 @@ class LauncherScriptTest : TestCaseWithTmpdir() { expectedStderr: String = "", expectedExitCode: Int = 0, workDirectory: File? = null, - environment: Map = emptyMap(), + environment: Map = mapOf("JAVA_HOME" to KtTestUtil.getJdk8Home().absolutePath), ) { val executableFileName = if (SystemInfo.isWindows) "$executableName.bat" else executableName val launcherFile = File(PathUtil.kotlinPathsForDistDirectory.homePath, "bin/$executableFileName")