This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new e5e4901eb8 MINOR: [Java] Indicate absolute path is required in docs
e5e4901eb8 is described below

commit e5e4901eb84224f353193bb4f512d60e82e40aa9
Author: Larry White <[email protected]>
AuthorDate: Thu May 12 09:43:35 2022 -0400

    MINOR: [Java] Indicate absolute path is required in docs
    
    Because maven is setup to run the tests in a temp folder, the path provided 
to the native libraries must be absolute or the tests will fail
    
    Closes #13114 from lwhite1/patch-1
    
    Lead-authored-by: Larry White <[email protected]>
    Co-authored-by: Larry White <[email protected]>
    Co-authored-by: David Li <[email protected]>
    Signed-off-by: David Li <[email protected]>
---
 docs/source/developers/java/building.rst | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/docs/source/developers/java/building.rst 
b/docs/source/developers/java/building.rst
index dcec13da52..38c03d0e48 100644
--- a/docs/source/developers/java/building.rst
+++ b/docs/source/developers/java/building.rst
@@ -78,6 +78,7 @@ We can build these manually or we can use `Archery`_ to build 
them using a Docke
 
 Building JNI Libraries on MacOS
 -------------------------------
+Note: If you are building on Apple Silicon, be sure to use a JDK version that 
was compiled for that architecture. See, for example, the `Azul JDK 
<https://www.azul.com/downloads/?os=macos&architecture=arm-64-bit&package=jdk>`_.
 
 To build only the C Data Interface library:
 
@@ -156,14 +157,14 @@ To compile the JNI bindings, use the ``arrow-c-data`` 
Maven profile:
 .. code-block::
 
     $ cd arrow/java
-    $ mvn -Darrow.c.jni.dist.dir=../java-dist/lib -Parrow-c-data clean install
+    $ mvn -Darrow.c.jni.dist.dir=<absolute path to your arrow 
folder>/java-dist/lib -Parrow-c-data clean install
 
 To compile the JNI bindings for ORC / Gandiva / Dataset, use the ``arrow-jni`` 
Maven profile:
 
 .. code-block::
 
     $ cd arrow/java
-    $ mvn -Darrow.cpp.build.dir=../java-dist/lib -Parrow-jni clean install
+    $ mvn -Darrow.cpp.build.dir=<absolute path to your arrow 
folder>/java-dist/lib -Parrow-jni clean install
 
 IDE Configuration
 =================

Reply via email to