You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
Native library loader not working with JDK8 early release.
The following exception is thrown.
pi@raspberrypi /opt/pi4j/examples $ sudo java -classpath .:classes:/opt/pi4j/lib/'*' ControlGpioExample
<--Pi4J--> GPIO Control Example ... started.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/libpi4j.so: /tmp/libpi4j.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:1954)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1843)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1060)
at com.pi4j.util.NativeLibraryLoader.loadLibraryFromResource(NativeLibraryLoader.java:289)
at com.pi4j.util.NativeLibraryLoader.load(NativeLibraryLoader.java:148)
at com.pi4j.wiringpi.Gpio.(Gpio.java:138)
at com.pi4j.io.gpio.RaspiGpioProvider.(RaspiGpioProvider.java:47)
at com.pi4j.io.gpio.GpioFactory.getDefaultProvider(GpioFactory.java:97)
at com.pi4j.io.gpio.impl.GpioControllerImpl.(GpioControllerImpl.java:65)
at com.pi4j.io.gpio.GpioFactory.getInstance(GpioFactory.java:80)
at ControlGpioExample.main(ControlGpioExample.java:50)
The text was updated successfully, but these errors were encountered:
Native library loader not working with JDK8 early release.
The following exception is thrown.
pi@raspberrypi /opt/pi4j/examples $ sudo java -classpath .:classes:/opt/pi4j/lib/'*' ControlGpioExample
<--Pi4J--> GPIO Control Example ... started.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/libpi4j.so: /tmp/libpi4j.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:1954)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1843)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1060)
at com.pi4j.util.NativeLibraryLoader.loadLibraryFromResource(NativeLibraryLoader.java:289)
at com.pi4j.util.NativeLibraryLoader.load(NativeLibraryLoader.java:148)
at com.pi4j.wiringpi.Gpio.(Gpio.java:138)
at com.pi4j.io.gpio.RaspiGpioProvider.(RaspiGpioProvider.java:47)
at com.pi4j.io.gpio.GpioFactory.getDefaultProvider(GpioFactory.java:97)
at com.pi4j.io.gpio.impl.GpioControllerImpl.(GpioControllerImpl.java:65)
at com.pi4j.io.gpio.GpioFactory.getInstance(GpioFactory.java:80)
at ControlGpioExample.main(ControlGpioExample.java:50)
The text was updated successfully, but these errors were encountered: