graalvm

igrishaev 2026-04-27T06:59:18.338399Z

Can anyone remind me please, if it possible to use DuckDB with GraalVM? I've been happily using DuckDB with Java runtime, and now trying to introduce it into a project that gets native-image compiled. I'm getting: "java.io.FileNotFoundException: DuckDB JNI library not found, path: '/var/task/libduckdb_java.so_linux_amd64'"

igrishaev 2026-04-27T07:00:30.780819Z

All the tests a run in Java runtime and thus pass with no issues. The issue only occurs on prod in AWS Lambda

borkdude 2026-04-27T07:00:58.443819Z

Haven’t had luck with it. We’re building a pod with golang now

igrishaev 2026-04-27T07:01:56.317919Z

I did some googling and didn't find any positive cases. Asking here just in case...

phronmophobic 2026-04-27T07:16:43.957909Z

duckdb has a C API, which you can definitely use from native image, https://duckdb.org/docs/current/clients/c/api. You can find their shared and static libraries in their releases, https://github.com/duckdb/duckdb/releases/tag/v1.5.2. Maybe there's some config that gets the java duckdb library to work. It kinda depends on your use case whether it's easier to wrap the C API or try to get the duckdb java library to work.

igrishaev 2026-04-27T09:20:40.177009Z

looks like this is the primary artifact: https://github.com/duckdb/duckdb-java/issues/180