[Solved] Building MRAA for Java on Pi 2 B (raspbian)
Posted: Sat Jun 04, 2016 3:11 am
i'm trying to use the MRAA lib to program the pins with java, but when I built the files, I can't find where the path was set, idealy it would be set on /usr/lib, but there's no mraa. Without it I can't compile the Java files that include mraa and load mraajava.
PS: I folowed the guide on the https://github.com/intel-iot-devkit/mra ... uilding.md and built with the following flags on the cmake line:
Have someone been able to successfully build the java files for tha Raspberry 2 B on the raspbian?
EDIT: Solved! After a close look at the Cmake error log, I realized that JAVA_HOME was somehow not exported and after a simple export JAVA_HOME=/usr/lib/jvm/jdk 8 everything worked.
PS: I folowed the guide on the https://github.com/intel-iot-devkit/mra ... uilding.md and built with the following flags on the cmake line:
Code: Select all
-DBUILDSWIGNODE=OFF -DBUILDSWIGPYTHON=OFF -DBUILDARCH=arm -DBUILDSWIGJAVA=ONEDIT: Solved! After a close look at the Cmake error log, I realized that JAVA_HOME was somehow not exported and after a simple export JAVA_HOME=/usr/lib/jvm/jdk 8 everything worked.