Registry / utility / jnr-posix

jnr-posix

JSON →
library3.1.22javamavenunverified

Provides cross-platform POSIX API access for Java, enabling system-level operations like file permissions and process management.

<dependency> <groupId>com.github.jnr</groupId> <artifactId>jnr-posix</artifactId> <version>3.1.22</version> </dependency>
INSTALL
IMPORT
SIG · JNR-POSIX
J
jnr-posix
utilityjavav3.1.22
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

POSIX
jnr.posix.POSIX

Gets the current user ID using POSIX API.

import jnr.posix.POSIX; import jnr.posix.POSIXFactory; public class Example { public static void main(String[] args) { POSIX posix = POSIXFactory.getPOSIX(); System.out.println("UID: " + posix.getuid()); } }
Debug
Known issues
gotchaPOSIXFactory.getPOSIX() may return a native or fallback implementation depending on platform.
fix
Use POSIXFactory.getPOSIX(new POSIXHandler() {...}) to control behavior.
affects: all
Upgrade
Version history
3.1.22latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jnr-posix — mvn dependency:get jnr-posix · libregistry