diff --git a/plugins/kapt3/kapt3-compiler/test/org/jetbrains/kotlin/kapt3/test/java9TestUtils.kt b/plugins/kapt3/kapt3-compiler/test/org/jetbrains/kotlin/kapt3/test/java9TestUtils.kt index d8a92693ee3..cf6d699de63 100644 --- a/plugins/kapt3/kapt3-compiler/test/org/jetbrains/kotlin/kapt3/test/java9TestUtils.kt +++ b/plugins/kapt3/kapt3-compiler/test/org/jetbrains/kotlin/kapt3/test/java9TestUtils.kt @@ -16,6 +16,7 @@ package org.jetbrains.kotlin.kapt3.test +import com.intellij.openapi.application.PathManager import com.intellij.openapi.util.SystemInfoRt import org.jetbrains.kotlin.kapt3.base.util.isJava9OrLater import org.jetbrains.kotlin.test.KotlinTestUtils @@ -46,6 +47,7 @@ interface Java9TestLauncher { javaExe.absolutePath, "--illegal-access=warn", "-ea", + "-D${PathManager.PROPERTY_HOME_PATH}=${PathManager.getHomePath()}", "-classpath", classpath.joinToString(File.pathSeparator), mainClass.name,