3 Replies Latest reply on Nov 18, 2016 3:03 PM by Intel Corporation

    Edison with Mraa/Java/Maven




      I've been trying some of the java examples from mraa and they work. I had a look at this tutorial "Blinking an LED with Java on the Intel Edison " and this relevant question (from Galileo community) "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

              at mraa.Gpio.<init>(Gpio.java:47)

              at BlinkIO.main(BlinkIO.java:57)

      Caused by: java.lang.NullPointerException

              at mraa.mraaJNI.<clinit>(mraaJNI.java:305)

              ... 2 more


      I've included the mraa dependency in my pom.xml







      Am missing something else?


      Thanks in advance!