Registry / utility / jna-platform

jna-platform

JSON →
library5.19.0javamavenunverified

Java Native Access (JNA) platform library providing cross-platform native library access.

<dependency> <groupId>net.java.dev.jna</groupId> <artifactId>jna-platform</artifactId> <version>5.19.0</version> </dependency>
INSTALL
IMPORT
SIG · JNA-PLATFORM
J
jna-platform
utilityjavav5.19.0
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.

Kernel32
com.sun.jna.platform.win32.Kernel32

Retrieve system information using JNA platform's Kernel32 interface.

import com.sun.jna.platform.win32.Kernel32; import com.sun.jna.platform.win32.WinBase.SYSTEM_INFO; public class JnaExample { public static void main(String[] args) { SYSTEM_INFO info = new SYSTEM_INFO(); Kernel32.INSTANCE.GetSystemInfo(info); System.out.println("Number of processors: " + info.dwNumberOfProcessors); } }
Debug
Known issues
breakingJNA Platform 5.x uses Java 8+; older versions may have compatibility issues.
fix
Ensure your Java version is 8 or higher for JNA 5.x.
affects: >=5.0.0
Upgrade
Version history
5.19.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
jna-platform — mvn dependency:get jna-platform · libregistry