summaryrefslogtreecommitdiff
blob: e252aed003d5d1e35a1dfaa888ceef604cd5e20c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
commit bad37bf86798d30292769581aca7e71471c34485
Author: Matthew Toseland <toad@amphibian.dyndns.org>
Date:   Fri Nov 5 23:30:43 2010 +0000

    Use the specific, absolute path, rather than loading from path, for NativeBigInteger library.

diff --git a/src/freenet/support/LibraryLoader.java b/src/freenet/support/LibraryLoader.java
index d4a22a0..2470d40 100644
--- a/src/freenet/support/LibraryLoader.java
+++ b/src/freenet/support/LibraryLoader.java
@@ -45,7 +45,7 @@ public class LibraryLoader {
 		File nativeLib = new File((System.getProperty("java.library.path")) + "/lib" + libraryName + prefix);
 		if (nativeLib.exists()) {
 			System.out.println("Attempting to load the NativeThread library ["+libraryName+']');
-			System.loadLibrary(libraryName);
+			System.loadLibrary(nativeLib.getAbsolutePath());
 			success = true;
 		} else {
 			try {