LucasHMSilva
Posts: 3
Joined: Wed Jun 01, 2016 10:54 pm

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

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:

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.
Last edited by LucasHMSilva on Sat Jun 04, 2016 2:47 pm, edited 1 time in total.

LucasHMSilva
Posts: 3
Joined: Wed Jun 01, 2016 10:54 pm

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

Sat Jun 04, 2016 2:15 pm

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

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

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

Sat Jun 04, 2016 2:45 pm

LucasHMSilva wrote:Mod's please mark as solved
Edit your top post and add [Solved] to the title.


Return to “Java”