diff options
author | Brendan Le Foll <brendan.le.foll@intel.com> | 2015-07-16 11:33:03 +0100 |
---|---|---|
committer | Brendan Le Foll <brendan.le.foll@intel.com> | 2015-07-16 11:33:03 +0100 |
commit | 8609dada2c8ea9947a1636d895ba1e5eff7eb880 (patch) | |
tree | 86fe3888b6dc324bdfb93a3b49bcfbb540f58b98 /docs/building.md | |
parent | a5d13670f485694327290e7dcce388f50efd1927 (diff) |
building.md: add instructions for java bindings on Arch
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Diffstat (limited to 'docs/building.md')
-rw-r--r-- | docs/building.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/building.md b/docs/building.md index 2fc1163..9386504 100644 --- a/docs/building.md +++ b/docs/building.md @@ -117,7 +117,11 @@ tar caf mraa.tar.bz2 cov-int ~~~~~~~~~~~~~ ## Building Java bindings -Have JAVA_HOME set to JDK install directory. Then use the cmake configuration flag: +Have JAVA_HOME set to JDK install directory. Most distributions set this from /etc/profile.d/ and have a way of switching between alternatives. We support both OpenJDK and Oracle's JDK. On Arch Linux with openjdk8 you'll have to set this yourself like this: +~~~~~~~~~~~~~{.sh} +export JAVA_HOME=/usr/lib/jvm/default/ +~~~~~~~~~~~~~ +Then use the cmake configuration flag: -DBUILDSWIGJAVA=ON To compile Example.java ~~~~~~~~~~~~~{.sh} |