jonathanswenson commented on PR #14472:
URL: https://github.com/apache/arrow/pull/14472#issuecomment-1304594732

   @kou I get an exception when I try to load the M1 version. 
   
   It looks like the Jni Loader code is missing an underscore. It is looking 
for `aarch64/libarrow_cdata_jni.dylib` when the jar contains 
`aarch_64/libarrow_cdata_jni.dylib`
   
   ```
   Exception in thread "main" java.lang.IllegalStateException: error loading 
native libraries: java.io.FileNotFoundException: 
aarch64/libarrow_cdata_jni.dylib
        at org.apache.arrow.c.jni.JniLoader.load(JniLoader.java:96)
        at org.apache.arrow.c.jni.JniLoader.loadRemaining(JniLoader.java:76)
        at org.apache.arrow.c.jni.JniLoader.ensureLoaded(JniLoader.java:60)
        at org.apache.arrow.c.jni.JniWrapper.get(JniWrapper.java:27)
        at org.apache.arrow.c.SchemaExporter.export(SchemaExporter.java:117)
        at org.apache.arrow.c.Data.exportField(Data.java:59)
        at org.apache.arrow.c.Data.exportSchema(Data.java:75)
        at org.example.Main.main(Main.java:24)
   
   ```
   
   I can see in the built jar that there is a 
`aarch_64/libarrow_cdata_jni.dylib` but not a `aarch64/libarrow_cdata_jni.dylib`
   
   ```
   ❯ tar tf ~/Downloads/arrow-c-data-11.0.0-SNAPSHOT.jar
   ...
   aarch_64/
   x86_64/
   ...
   x86_64/libarrow_cdata_jni.dylib
   x86_64/arrow_cdata_jni.dll
   ...
   aarch_64/libarrow_cdata_jni.dylib
   ...
   x86_64/libarrow_cdata_jni.so
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to