[
https://issues.apache.org/jira/browse/ARROW-17404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17579922#comment-17579922
]
Kouhei Sutou commented on ARROW-17404:
--------------------------------------
1. Yes.
2. Yes. We can use {{find_package(Arrow REQUIRED)}} in {{CMakeLists.txt}} to
find installed {{libarrow.so}}/{{libarrow.a}}/...
3. Yes. I think that we can produce JNI DLLs easily on Windows too because
CMake handles DLL related stuff. But we may need to spend time to prepare
Windows CI. As the first step, we need to add a CI job on Windows to
{{.github/workflows/java.yml}} without JNI related stuff. Then we can add JNI
related stuff to the added CI job. We also need to add {{build-cpp-windows}} to
{{dev/tasks/java-jars/github.yml}} to provide jars that support
Linux/macOS/Windows.
> [Java] Consolidate JNI compilation #2
> -------------------------------------
>
> Key: ARROW-17404
> URL: https://issues.apache.org/jira/browse/ARROW-17404
> Project: Apache Arrow
> Issue Type: Bug
> Components: Documentation, Java
> Reporter: David Dali Susanibar Arce
> Assignee: David Dali Susanibar Arce
> Priority: Major
>
> *Umbrella ticket for consolidating Java JNI compilation initiative #2*
> Initial part of consolidate JNI Java initiative was: Consolidate ORC/Dataset
> code and Separate JNI CMakeLists.txt compilation.
> This 2nd part consist on:
> 1.- Make the Java library able to compile with a single mvn command
> 2.- Make Java library able to compile from an installed libarrow
> 3.- Migrate remaining C++ CMakeLists.txt specific to Java into the Java
> project: ORC / Dataset / Gandiva
> 4.- Add windows build script that produces DLLs
> 5.- Incorporate Windows DLLs into the maven packages
> 6.- Migrate ORC JNI to use C-Data-Interface
--
This message was sent by Atlassian Jira
(v8.20.10#820010)