Skip to content

Java sdk doesn't work with alpine #1218

@adam-brusselback

Description

@adam-brusselback

Steps To Reproduce

Use an Alpine Linux-based Java container
Include the Bitwarden Java SDK as a dependency
Initialize the BitwardenClient in your application
Start the application

Expected Result

No errors on startup.

Actual Result

When starting we get the error:

Caused by: java.lang.UnsatisfiedLinkError: Error loading shared library libgcc_s.so.1: No such file or directory (needed by /root/.cache/JNA/temp/jna14893307320661373708.tmp)

After adding libgcc to the image:

Caused by: java.lang.UnsatisfiedLinkError: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /root/.cache/JNA/temp/jna9475222242932529641.tmp)

Screenshots or Videos

No response

Additional Context

The BitwardenService fails to initialize in Alpine Linux containers due to JNA compatibility issues with musl libc. The application crashes on startup with native library loading errors.

Operating System

Linux

Operating System Version

docker.io/eclipse-temurin:21-jre-alpine

Build Version

1.0.1

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions