diff --git a/ffm/src/main/java/org/pcre4j/ffm/Pcre2.java b/ffm/src/main/java/org/pcre4j/ffm/Pcre2.java index c09ed15..96e7dc4 100644 --- a/ffm/src/main/java/org/pcre4j/ffm/Pcre2.java +++ b/ffm/src/main/java/org/pcre4j/ffm/Pcre2.java @@ -91,7 +91,7 @@ public Pcre2(String library, String suffix) { throw new IllegalArgumentException("suffix must not be null"); } - if (new File(library).exists()) { + if (library.indexOf(File.separatorChar) != -1) { System.load(library); } else { System.loadLibrary(library);