java-native-access/jna
View on GitHub ↗ ★ 8,933 Java
Java Native Access
18 mentions on Hacker News by 14 people: 0 stories, 18 comments · first 2016-06-24 · latest 2025-02-04
20082026
-
https://github.com/java-native-access/jna/pull/1608 Much of this configuration could be automatic if more attention were given to GraalVM by library authors.
comment by sgammon · 2025-02-04 · in Compiling Java into native binaries with Graal and Mill -
…problem. I'm not sure if you've used JNA before? That's been the state of the art for many years: https://github.com/java-native-access/jna public interface MSVCRT extends Library { public static MSVCRT Instance = (MSVCRT)…
comment by kuschku · 2024-08-29 · in Microsoft donates the Mono Project to the Wine team -
…way, and how Cassandra does it. https://docs.oracle.com/en/java/javase/21/core/calling-c-lib... https://github.com/java-native-access/jna
comment by papercrane · 2024-05-30 · in Vector indexing all of Wikipedia on a laptop -
It does! Code is here https://github.com/java-native-access/jna/blob/40f0a1249b5ad...
comment by sedro · 2024-05-09 · in How to Use the Foreign Function API in Java 22 to Call C Libraries -
According to JNA it's not safe to unload the DLL: https://github.com/java-native-access/jna/blob/40f0a1249b5ad... Do NOT force the class loader to unload the native library, since that introduces issues with cleaning up any extant JNA bits…
comment by sedro · 2024-05-09 · in How to Use the Foreign Function API in Java 22 to Call C Libraries -
…the library to a temp file, then load it. JNA does this? FYI: JNA = Java Native Access project: https://github.com/java-native-access/jna
comment by throwaway2037 · 2024-05-09 · in How to Use the Foreign Function API in Java 22 to Call C Libraries -
Wonder if this will make JNA (Java Native Access) redundant at some point: https://github.com/java-native-access/jna Very useful, especially the prebundled platform bindings.
comment by alex_suzuki · 2024-05-08 · in How to Use the Foreign Function API in Java 22 to Call C Libraries -
As far as I understand it, with JNA, all calls into C code go through libffi: https://github.com/java-native-access/jna/blob/master/www/Fu... This means that every call sets up some libffi data structures and libffi uses this information…
comment by fweimer · 2023-12-11 · in FFM (Foreign Function and Memory API) Goes Final -
…a pure java solution. Something like this has existed in third-party form for a while as JNA ( https://github.com/java-native-access/jna ), but now it's going to be built into the JRE itself (if the proposal passes through review)
comment by pilif · 2022-03-29 · in JEP 419: Foreign Function and Memory API -
JNA looks reasonable for accessing native code from Java: https://github.com/java-native-access/jna/blob/master/www/Ge...
comment by rzzzt · 2021-06-20 · in Obvious and possible software innovations -
I was the de facto maintainer of JNA ( https://github.com/java-native-access/jna ) win32 bindings for years. The API metadata is welcome - we have always based all work on header files in the visual studio / windows SDK. Now there’s a…
comment by dblock · 2021-01-24 · in Making Win32 APIs More Accessible to More Languages -
…isn't thread-local by default, and you have to -D_THREAD_SAFE_ERRNO to get a thread-safe errno. [1] https://github.com/java-native-access/jna/issues/237
comment by skissane · 2020-05-29 · in PowerPC Solaris on the RS/6000 -
…native access these days. JNA overhead is pretty low, and it’s much simpler to use versus JNI. [1] https://github.com/java-native-access/jna
comment by cobbzilla · 2019-05-10 · in IT Runs on Java 8 -
…signals on your own, close file descriptors, etc). No surprises there. Let's say I am using JNA – https://github.com/java-native-access/jna – under Java. It is safe to call posix_spawn from Java code using JNA. It is safe to call the…
comment by skissane · 2017-01-16 · in Systemd Sucks, Long Live Systemd -
…you actually start to write code against JNI, of course. JNA[1] makes things much simpler. [1] https://github.com/java-native-access/jna
comment by wtetzner · 2017-01-11 · in Go 1.8 Release Candidate 1 is released -
…JNI, you can use JNA [1] (which I believe uses JNI to link to libffi, and libffi for the rest). [1] https://github.com/java-native-access/jna
comment by wtetzner · 2016-10-27 · in JEP 295: Ahead-of-Time Compilation -
…version panama[2] will offer similar functionality to JNR. [0] https://github.com/jnr/jnr-ffi [1] https://github.com/java-native-access/jna [2] http://openjdk.java.net/projects/panama/
comment by the8472 · 2016-10-27 · in JEP 295: Ahead-of-Time Compilation -
…be Project Panama[2] which will provide that out of the box. [0] https://github.com/jnr/jnr-ffi [1] https://github.com/java-native-access/jna/blob/master/www/Ge... [1] http://openjdk.java.net/projects/panama/
comment by the8472 · 2016-06-24 · in Proposed New Go GC: Transaction-Oriented Collector