We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dccf1fd commit 87f012cCopy full SHA for 87f012c
runtime/src/main/java/com4j/COM4J.java
@@ -545,7 +545,7 @@ private static void loadNativeLibrary() {
545
final String fileName = "com4j-" + System.getProperty("os.arch") + ".dll";
546
547
// try loading com4j.dll in the same directory as com4j.jar
548
- URL res = COM4J.class.getClassLoader().getResource("com4j/COM4J.class");
+ URL res = COM4J.class.getResource("/com4j/COM4J.class");
549
String url = res.toExternalForm();
550
if(url.startsWith("jar:")) {
551
int idx = url.lastIndexOf('!');
0 commit comments