From 90910cae3487311103e1792fb812e9d86b347aa5 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Tue, 1 May 2012 17:39:56 +0400 Subject: [PATCH] kotlin runtime must be added to classpath (not just to library root) --- .../jetbrains/jet/cli/jvm/compiler/JetCoreEnvironment.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/JetCoreEnvironment.java b/compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/JetCoreEnvironment.java index 14e5111f06b..f0ae060e20c 100644 --- a/compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/JetCoreEnvironment.java +++ b/compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/JetCoreEnvironment.java @@ -72,9 +72,7 @@ public class JetCoreEnvironment extends JavaCoreEnvironment { } } if (compilerSpecialMode.includeKotlinRuntime()) { - for (VirtualFile root : compilerDependencies.getRuntimeRoots()) { - addLibraryRoot(root); - } + addToClasspath(compilerDependencies.getRuntimeJar()); } JetStandardLibrary.initialize(getProject());