Interconnecting Java and Native Code with the FFM API

Veröffentlicht am: 14 Juni 2025
auf dem Kanal: Java
12,447
331

👉 Join us for JavaOne 2026. Sign up now to get ongoing updates https://go.oracle.com/LP=149517

The Java platform has always provided a rich set of libraries for developers to reach beyond the boundaries of the JVM, from databases (JDBC) to web services (HTTP client). Previously, accessing foreign memory (i.e., memory not managed by the JVM) and invoking foreign functions (i.e., code outside the JVM) in Java was hard and unsafe.

The Foreign Function & Memory Access API (FFM API), delivered in Java SE 22, reduced the impedance mismatch between Java applications and native libraries in three steps. First, the FFM API provides a rich API to model a region of off-heap memory as a memory segment. Second, the FFM API provides a rich API to describe and link native functions. Third, access to native libraries can be simplified even further with the use of a tool (jextract) that mechanically generates the FFM API artifacts needed to access said libraries.

The presentation showcases fundamental FFM principles as well as Java integration with native graphic libraries and AI frameworks.

Presented by Per Minborg - Consulting Member of Technical Staff (Java Platform Group - Oracle) at JavaOne 2025 (CA, March 2025).

All JavaOne 2025 talks ➤    • JavaOne 2025  

➤ https://jdk.java.net/jextract/
➤ https://inside.java/tag/panama

Tags: #Java #JVM #native #OpenJDK

SES1644


Auf dieser Seite können Sie das Online-Video Interconnecting Java and Native Code with the FFM API mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Java 14 Juni 2025 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 12,447 Mal angesehen und es wurde von 331 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!