Skip to content

graalvm native support? #24

Description

@Liangdi

According to the documentation (https://www.graalvm.org/latest/reference-manual/native-image/native-code-interoperability/foreign-interface/), you need to configure ForeignRegistrationFeature, but I don't know how to configure it

Activity

  1. manuelbl commented on Jul 4, 2024

    @manuelbl
    Owner

    GraalVM has many restrictions affecting the Foreign Function and Memory (FFM) API. It neither supports upcalls nor calls to SymbolLookup.libraryLookup(). Unfortunately, they are required for this library. So the GraalVM support for FFM is currently insufficient to run this library on any platform.

  2. Syer10 commented on May 18, 2025

    @Syer10

    @manuelbl The upcoming GraalVM is looking good for the FFM API, is it possible to look into supporting it now? I am using https://github.com/graalvm/graalvm-ce-dev-builds/releases/tag/25.0.0-dev-20250517_0807 to test it.

  3. manuelbl commented on May 19, 2025

    @manuelbl
    Owner

    @Syer10 GraalVM obviously makes progress. I will try to make it work with JavaDoesUSB when I find time.

  4. manuelbl commented on Sep 13, 2025

    @manuelbl
    Owner

    Release 1.2.1 introduces minor changes so the library works with GraalVM 25 and higher.

    See the enumerate_native for instructions. The example has the reachability metadata for Windows, Linux and macOS required by GraalVM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions