Last week, I moved my Phidgets projects from my old Linux notebook to my new MacBook.
I have installed the Phidgets21.DMG file but keep getting the following error when I try to run the applications.
Exception in thread "main" java.lang.ExceptionInInitializerError: no phidget21 in java.library.path
Could not locate the Phidget C library.
The Mac Phidget21 DMG must be installed.
The aggravating thing is that they run fine on the old Linux box. I have reinstalled the OS X drivers and also tried adding setting LD_LIBRARY_PATH=/usr/local/lib in the Eclipse run configurations (as listed in another thread). Still no luck.
Interstingly, I cannot even run the samples via: “java -jar -Djava.library.path=/usr/local/lib TextLCD-full.jar”
I get the same error message (Could not locate the Phidget C Library…).
I am on:
OS X 10.9.2