I'm trying to execute the jar-with-dependencies file on the Beaglebone black to test the example. But I receive the stack trace as below:
OpenJDK Client VM warning: You have loaded library /tmp/bulldog-linux-native736999629892512690.so which might have disabled stack guard. The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/bulldog-linux-native736999629892512690.so: /tmp/bulldog-linux-native736999629892512690.so: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1946) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1828) at java.lang.Runtime.load0(Runtime.java:810) at java.lang.System.load(System.java:1088) at io.silverspoon.bulldog.linux.util.LinuxLibraryLoader.loadLibraryFromClasspath(Unknown Source) at io.silverspoon.bulldog.linux.util.LinuxLibraryLoader.loadNativeLibrary(Unknown Source) at io.silverspoon.bulldog.beagleboneblack.BeagleBoneBlackBoardFactory.createBoard(Unknown Source) at io.silverspoon.bulldog.core.platform.Platform.createBoard(Unknown Source) at com.khoa.Main.main(Main.java:18)
I am using JDK 8 32-bit on both my PC and BBB Linux beaglebone 4.14.71-ti-r80 #1 SMP PREEMPT Fri Oct 5 23:50:11 UTC 2018 armv7l GNU/Linux openjdk version "1.8.0_242" OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-1~deb9u1-b08) OpenJDK Client VM (build 25.242-b08, mixed mode) java version "1.8.0_241" Java(TM) SE Runtime Environment (build 1.8.0_241-b07) Java HotSpot(TM) Client VM (build 25.241-b07, mixed mode, sharing)
You can find the POM.xml here:bulldog_example.txt
Here are the steps that I did, just for clarifications.
1) Assemble the project into a single jar with all dependencies.
2) Copy the jar file to Beaglebone black and execute using this command:
java -cp maven-fisrtime-1.0-SNAPSHOT-jar-with-dependencies.jar com.khoa.Main
Dear All,
I'm trying to execute the jar-with-dependencies file on the Beaglebone black to test the example. But I receive the stack trace as below:
OpenJDK Client VM warning: You have loaded library /tmp/bulldog-linux-native736999629892512690.so which might have disabled stack guard. The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/bulldog-linux-native736999629892512690.so: /tmp/bulldog-linux-native736999629892512690.so: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1946) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1828) at java.lang.Runtime.load0(Runtime.java:810) at java.lang.System.load(System.java:1088) at io.silverspoon.bulldog.linux.util.LinuxLibraryLoader.loadLibraryFromClasspath(Unknown Source) at io.silverspoon.bulldog.linux.util.LinuxLibraryLoader.loadNativeLibrary(Unknown Source) at io.silverspoon.bulldog.beagleboneblack.BeagleBoneBlackBoardFactory.createBoard(Unknown Source) at io.silverspoon.bulldog.core.platform.Platform.createBoard(Unknown Source) at com.khoa.Main.main(Main.java:18)
I am using JDK 8 32-bit on both my PC and BBB
Linux beaglebone 4.14.71-ti-r80 #1 SMP PREEMPT Fri Oct 5 23:50:11 UTC 2018 armv7l GNU/Linux
openjdk version "1.8.0_242" OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-1~deb9u1-b08) OpenJDK Client VM (build 25.242-b08, mixed mode)
java version "1.8.0_241" Java(TM) SE Runtime Environment (build 1.8.0_241-b07) Java HotSpot(TM) Client VM (build 25.241-b07, mixed mode, sharing)
You can find the POM.xml here:bulldog_example.txt Here are the steps that I did, just for clarifications. 1) Assemble the project into a single jar with all dependencies. 2) Copy the jar file to Beaglebone black and execute using this command:
java -cp maven-fisrtime-1.0-SNAPSHOT-jar-with-dependencies.jar com.khoa.Main
May anyone know how to fix this?
Thank you.