Hello everybody,
I already asked this in the RPi Java forum, but got no answer so far. So, I'll try again here, since I really try to get this working. However, I'm quite new to all the 'systems' involved here - Netbeans, Linux, Java. So, If anyone can help with this it would be great:
I'm trying to set up Netbeans 8.0.2 on a Win10 PC to remotely debug a GPIO-using Application on a Pi 2. I installed pi4j on the respective Pi (Raspian Jessie) and defined a remote debugging connection within Netbeans, and also did set up a pi4k-core.lib within Netbeans, just as indicated in several tutorials I found.
When I run a simple java application without accessing pi4j/GPIO, everything works fine, even using jframes is no problem at all.
However, when I try to run the blinking led sample, the application does not start, giving me this failure notice:
debug:
Oct 18, 2015 9:51:43 PM com.pi4j.util.NativeLibraryLoader load
SEVERE: Unable to load [libpi4j.so] using path: [/lib/libpi4j.so]
java.lang.IllegalArgumentException: The path has to be absolute, but found: \lib\libpi4j.so
at com.pi4j.util.NativeLibraryLoader.loadLibraryFromClasspath(NativeLibraryLoader.java:120)
at com.pi4j.util.NativeLibraryLoader.load(NativeLibraryLoader.java:92)
at com.pi4j.wiringpi.Gpio.<clinit>(Gpio.java:174)
at com.pi4j.io.gpio.RaspiGpioProvider.<init>(RaspiGpioProvider.java:51)
at com.pi4j.io.gpio.GpioFactory.getDefaultProvider(GpioFactory.java:106)
at com.pi4j.io.gpio.impl.GpioControllerImpl.<init>(GpioControllerImpl.java:54)
at com.pi4j.io.gpio.GpioFactory.getInstance(GpioFactory.java:89)
at GPIOTest.GPIOTestStart.main(GPIOTestStart.java:53)
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.pi4j.wiringpi.Gpio.wiringPiSetup()I
at com.pi4j.wiringpi.Gpio.wiringPiSetup(Native Method)
at com.pi4j.io.gpio.RaspiGpioProvider.<init>(RaspiGpioProvider.java:51)
at com.pi4j.io.gpio.GpioFactory.getDefaultProvider(GpioFactory.java:106)
at com.pi4j.io.gpio.impl.GpioControllerImpl.<init>(GpioControllerImpl.java:54)
at com.pi4j.io.gpio.GpioFactory.getInstance(GpioFactory.java:89)
at GPIOTest.GPIOTestStart.main(GPIOTestStart.java:53)
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)