diff --git a/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileRuntime.java b/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileRuntime.java index e0369563d0b..295d239cd6e 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileRuntime.java +++ b/compiler/tests/org/jetbrains/jet/codegen/forTestCompile/ForTestCompileRuntime.java @@ -23,6 +23,10 @@ import java.io.File; public class ForTestCompileRuntime { @NotNull public static File runtimeJarForTests() { - return new File("dist/kotlinc/lib/kotlin-runtime.jar"); + File runtime = new File("dist/kotlinc/lib/kotlin-runtime.jar"); + if (!runtime.exists()) { + throw new IllegalStateException("kotlin-runtime.jar in dist/kotlinc/lib does not exist. Run 'ant dist'"); + } + return runtime; } }