0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

別OSにjar移動

Last updated at Posted at 2024-11-17

Raspberry Pi から Ubuntuに以下をコピー
・HelloJNI.jar
・libHelloJNIImpl.so
してjar実行

tak@tak-VirtualBox:~/JNI/HelloJniMoved$ java -Djava.library.path=. -jar HelloJNI.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/tak/JNI/HelloJniMoved/libHelloJNIImpl.so: /home/tak/JNI/HelloJniMoved/libHelloJNIImpl.so: 共有オブジェクトファイルを開けません: そのようなファイルやディレクトリはありません (Possible cause: can't load AARCH64-bit .so on a AMD 64-bit platform)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1850)
	at java.lang.Runtime.loadLibrary0(Runtime.java:843)
	at java.lang.System.loadLibrary(System.java:1136)
	at HelloJNI.<clinit>(HelloJNI.java:7)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?