mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
fix java.library.path on the ARM platform
On the ARM platform, Avian compiled to use OpenJDK gets this error on startup: java/lang/UnsatisfiedLinkError: no zip in java.library.path at java/lang/ClassLoader.loadLibrary (line 1860) at java/lang/Runtime.loadLibrary0 (line 845) at java/lang/System.loadLibrary (line 1084) at java/lang/System.initializeSystemClass (line 1145) Using strace shows why: [pid 22431] stat64("/usr/lib/jvm/java-7-openjdk-armhf/jre/lib/i386/libzip.so", 0xbee377e0) = -1 ENOENT (No such file or directory) The attached patch uses "arm" instead of "i386" in that path. This fixes the problem.
This commit is contained in:
parent
5a09774353
commit
59d7f5a47a
@ -417,6 +417,8 @@ class MyClasspath : public Classpath {
|
||||
sb.append("/lib");
|
||||
#elif defined ARCH_x86_64
|
||||
sb.append("/lib/amd64");
|
||||
#elif defined ARCH_arm
|
||||
sb.append("/lib/arm");
|
||||
#else
|
||||
// todo: handle other architectures
|
||||
sb.append("/lib/i386");
|
||||
|
Loading…
Reference in New Issue
Block a user