Page 1 of 1

[Solved] Building MRAA for Java on Pi 2 B (raspbian)

Posted: Sat Jun 04, 2016 3:11 am
by LucasHMSilva
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:

Code: Select all

-DBUILDSWIGNODE=OFF -DBUILDSWIGPYTHON=OFF -DBUILDARCH=arm -DBUILDSWIGJAVA=ON
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.

Re: Building MRAA for Java on Pi 2 B (raspbian)

Posted: Sat Jun 04, 2016 2:15 pm
by LucasHMSilva
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.

Mod's please mark as solved

Re: Building MRAA for Java on Pi 2 B (raspbian)

Posted: Sat Jun 04, 2016 2:45 pm
by DirkS
LucasHMSilva wrote:Mod's please mark as solved
Edit your top post and add [Solved] to the title.

Re: [Solved] Building MRAA for Java on Pi 2 B (raspbian)

Posted: Sat Jun 04, 2016 2:48 pm
by LucasHMSilva
Done! Thanks