I've been trying some of the java examples from mraa and they work. I had a look at this tutorial "https://www.geoffhayward.eu/tags/edison Blinking an LED with Java on the Intel Edison " and this relevant question (from Galileo community) "/message/394921 MRAA with Java".
Now my problem is that whenever I compile/build the same examples with maven (executable jar with dependencies included), I get this error:
Provide an int arg if you want to flash on something other than 8
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
... 2 more
I've included the mraa dependency in my pom.xml
Am missing something else?
Thanks in advance!
Thanks for contacting us!
I appreciate all the information provided, I have found this guide in order to use Mraa on the Intel Edison with Maven and Eclipse, please take a look at this link: http://appiot-docs.azurewebsites.net/?p=9331 http://appiot-docs.azurewebsites.net/?p=9331, and let me know if that information helps or if you have any other question.
It seems to be a purely packaging problem with maven I suppose. Exporting as executable jar with Eclipse (which works) seems to include all dependencies whereas with maven it doesn't.
I've tried all kind of tricks with http://maven.apache.org/plugins/maven-assembly-plugin/ maven-assembly-plugin and http://maven.apache.org/plugins/maven-shade-plugin/ maven-shade-plugin without success.
I'm resting my case here since it has nothing to do with the board itself.
Thanks for the tip Yermi