Questions tagged [jnr]

JNR (Java Native Runtime) is a Java library for calling native code. It is used for binding native libraries and native memory.

About

JNR (Java Native Runtime) is a Java library for calling native code. It is used for binding native libraries and native memory. It is supported by a rich Runtime library.

The justifications for using JNR are:

  • Native IO, symlinks, FS-walking,
  • Unmanaged memory
  • Selectable stdio, process IO
  • Low-level or other sockets (UNIX, ICMP, ...)
  • New APIs (graphics, crypto, OS, ...)

Useful links

  1. Java Native Runtime presentation by Charles Oliver Nutter
  2. github: jnr repository
32 questions
0
votes
1 answer

__stdcall with JNR

I'm using JNR and trying to call to __stdcall function. I've already tried to load library with stdcall() convention: mTemplateApi = LibraryLoader.create(FPTemplateAPI.class).stdcall().load("FPTemplateAPI"); And tried to annotate method with…
goto1134
  • 107
  • 11
-1
votes
1 answer

How to handle a SIGSEGV with jffi / jnr?

The Java VM crash with a SIGSEGV in a docker container. On all other systems it is working as expected. # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000000007966, pid=188, tid=189 # # JRE version:…
Horcrux7
  • 23,758
  • 21
  • 98
  • 156
1 2
3