Created
November 4, 2020 23:10
-
-
Save itdaniher/843b30fc30655c2dd8a6fe698594be70 to your computer and use it in GitHub Desktop.
get a list of the loaded native libraries in the current jvm, in scala / ammonite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val libs = classOf[ClassLoader].getDeclaredField("loadedLibraryNames") | |
libs.setAccessible(true) | |
libs.get(ClassLoader.getSystemClassLoader).asInstanceOf[java.util.HashSet[String]].toArray |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment