1

I am developing my code project on Windows 8 on Java 8 using NetBeans. I created a new Java project (Tester) with one class ControlGpioExample (http://pi4j.com/example/control.html).

I set ControlGpioExample as setup class, and added the Gpio lib to this project.

Then I created a jar and copied it to the raspberry device.

Although the device also has libraries, this code fails.

The strange thing is when I execute original jar from RP lib

everything works well

Why does this work? Why doesn't my solution work?

RealSkeptic
  • 33,993
  • 7
  • 53
  • 79
user3794273
  • 91
  • 1
  • 1
  • 11
  • You might find your answer at [this question](http://stackoverflow.com/questions/17408769/how-do-i-resolve-this-java-class-not-found-exception). – snickers10m May 02 '15 at 20:50
  • Which directory contains the relevant libraries? Does `/opt/pi4j/examples/classes` exist? Does `~/Downloads/classes` exist? – RealSkeptic May 02 '15 at 20:57
  • Relevant libraries are in `/opt/pi4j/`. No exist `/opt/pi4j/examples/classes`, no exist `~/Downloads/classes` – user3794273 May 02 '15 at 21:07

0 Answers0