-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.UnsatisfiedLinkError when using JDBC connect DuckDB #96
Comments
Hi, the Brew installation, which contains the CLI client, is independent of the Java package of DuckDB. The problem may be the version of macOS – we do not officially support MacOS 10.15 and DuckDB is only tested on macOS latest. |
Hello, I'm getting a similar error:
The application is running on docker on an AWS EC2 instance. That image is currently built It was previously built DuckDB worked without error on the Java8 version. However it is not working on the Java21 version. I'm assuming that the 21-aipine image does not contain the library in the error message. Which I think is libc6-compat? I'm going to try to add the libc6-compat to the image and see if that fixes the error. |
We don't officially support alpine linux/musl based linuxes with the java bindings, any support there is best effort |
Thanks @Mause! For anyone who might stumble upon this, adding a libc compat didn't work for me. I was able to switch to using the temurin:21 image that uses glibc and that worked! |
hello! I'm also having the same error as java.lang.NoClassDefFoundError: Could not initialize class org.duckdb.DuckDBNative and java.lang.UnsatisfiedLinkError: C:\test\apache-tomcat-9.0.1\temp\libduckdb_java6430303658981519090.so: Can 't find dependent libraries. I use duckdb in a web application that is installed on a tomcat and the error only occurs when I install it on a virtual machine in the cloud (in the case of Azure). The machine has the Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz 2.10 GHz and uses Windows Server 2022 Datacenter Azure Edition. Is there anything I can do to avoid this error? |
What happens?
When I used duckdb jdbc api to connect duckdb and fetch data, it reported the following errors
openjdk version "1.8.0_332"
To Reproduce
The java program code
The maven dependency
The duckdb is installed by Homebrew
OS:
MacOS 10.15
DuckDB Version:
1.1.0
DuckDB Client:
JDBC
Hardware:
No response
Full Name:
Shuai Chen
Affiliation:
Huifu Company, China
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have not tested with any build
Did you include all relevant data sets for reproducing the issue?
No - Other reason (please specify in the issue body)
Did you include all code required to reproduce the issue?
Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
The text was updated successfully, but these errors were encountered: