Skip to content

Commit 7152a9e

Browse files
committed
Add --add-opens into readme
1 parent 1731eab commit 7152a9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graalpy/graalpy-apache-arrow-guide/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,11 @@ To run the application using Maven, first define `exec` plugin:
302302
</configuration>
303303
</plugin>
304304
```
305+
Before running the application we need to open the internal java.nio package to Apache Arrow. To do this we need to export one environment variable:
306+
```bash
307+
export MAVEN_OPTS="--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED"
308+
```
309+
305310
Run the application using:
306311
```bash
307312
./mvnw exec:java -Dexec.mainClass="com.example.Main"

0 commit comments

Comments
 (0)