Just what the subject says, is there a way in Java to get a list of all the JNI native libraries which have been loaded at any given time?
FWIW, here's jitter's solution again, this time as a small Scala method:
def loadedLibs: Seq[String] = {
val libs = classOf[ClassLoader].getDeclaredField("loadedLibraryNames")
libs.setAccessible(true)
import scala.collection.JavaConverters._
libs.get(ClassLoader.getSystemClassLoader())
.asInstanceOf[java.util.Vector[String]]
.asScala
}