Skip to content

Instantly share code, notes, and snippets.

@itdaniher
Created November 4, 2020 23:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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
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