Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong ELF class exception under linux-64 platform (non-ARM) #14

Closed
laugan-ton opened this issue Jun 17, 2021 · 0 comments
Closed

Wrong ELF class exception under linux-64 platform (non-ARM) #14

laugan-ton opened this issue Jun 17, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@laugan-ton
Copy link

Library works in Windows, but after loading on Linux x64 it shows the following stack trace:

Caused by: java.io.IOException: Couldn't load library library tonclientjni
  at org.scijava.nativelib.NativeLoader.loadLibrary(NativeLoader.java:141) ~[native-lib-loader-2.3.4.jar!/:2.3.4]
  at ee.nx01.tonclient.TonClient.<clinit>(TonClient.kt:119) ~[ton-client-kotlin-0.0.31.jar!/:na]
  ... 85 common frames omitted
Caused by: java.lang.UnsatisfiedLinkError: /usr/lib64/libtonclientjni.so: /usr/lib64/libtonclientjni.so: wrong ELF class: ELFCLASS32 (Possible cause: can't load ARM .so on a AMD 64 platfor
m)
  at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) ~[na:na]
  at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383) ~[na:na]
  at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227) ~[na:na]
  at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169) ~[na:na]
  at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:310) ~[na:na]
  at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:282) ~[na:na]
  at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2416) ~[na:na]
  at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:808) ~[na:na]
  at java.base/java.lang.System.loadLibrary(System.java:1893) ~[na:na]
  at org.scijava.nativelib.NativeLoader.loadLibrary(NativeLoader.java:136) ~[native-lib-loader-2.3.4.jar!/:2.3.4]

Seems like linux ".so" was built for wrong architecture.

mdorofeev added a commit that referenced this issue Jun 17, 2021
mdorofeev added a commit that referenced this issue Jun 17, 2021
@mdorofeev mdorofeev self-assigned this Jun 17, 2021
@mdorofeev mdorofeev added the bug Something isn't working label Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants