diff --git a/src/main/java/org/apache/ibatis/migration/commands/BaseCommand.java b/src/main/java/org/apache/ibatis/migration/commands/BaseCommand.java index 7efdbe21..e24a427d 100644 --- a/src/main/java/org/apache/ibatis/migration/commands/BaseCommand.java +++ b/src/main/java/org/apache/ibatis/migration/commands/BaseCommand.java @@ -238,7 +238,7 @@ private ClassLoader getDriverClassLoader() { if (files != null) { for (File file : files) { String filename = file.getCanonicalPath(); - if (!filename.startsWith("/")) { + if (!file.getCanonicalFile().toPath().startsWith("/")) { filename = "/" + filename; } urlList.add(new URL("jar:file:" + filename + "!/"));