Package org.jline.nativ
Class OSInfo
java.lang.Object
org.jline.nativ.OSInfo
-
Field Details
-
X86
- See Also:
-
X86_64
- See Also:
-
IA64_32
- See Also:
-
IA64
- See Also:
-
PPC
- See Also:
-
PPC64
- See Also:
-
ARM64
- See Also:
-
-
Method Details
-
main
-
getNativeLibFolderPathForCurrentOS
-
getOSName
-
isAndroid
public static boolean isAndroid() -
isMusl
public static boolean isMusl()Detects whether the current process is using musl libc (e.g. on Alpine Linux).First checks
/proc/self/mapsto see if the process has musl's dynamic linker loaded — this is the most reliable method as it detects the libc the current JVM is actually linked against, even on systems where both glibc and musl are installed. Falls back to checking for/lib/ld-musl-*when procfs is unavailable. -
isAlpine
Deprecated.UseisMusl()instead, which correctly detects all musl-based systems.Detects whether the current system is Alpine Linux. -
getArchName
-
isMusl()instead, which correctly detects all musl-based systems.