diff --git a/src/main/java/de/dhbwstuttgart/environment/CompilationEnvironment.java b/src/main/java/de/dhbwstuttgart/environment/CompilationEnvironment.java index b26d1eee..0e2a4534 100644 --- a/src/main/java/de/dhbwstuttgart/environment/CompilationEnvironment.java +++ b/src/main/java/de/dhbwstuttgart/environment/CompilationEnvironment.java @@ -75,7 +75,7 @@ public class CompilationEnvironment { ClassLoader classLoader = compiler.getClassLoader(); List ret = new ArrayList<>(); // Set classLoader to include default package for this specific source file - File dir = sourceFile.getParentFile(); + File dir = sourceFile.getAbsoluteFile().getParentFile(); String dirPath = dir.toString() + "/"; if (packageName.length() > 0) dirPath = dirPath.substring(0, dirPath.length() - packageName.length() - 1);