The doc for loadLibrary says: "The manner in which a library name is mapped to the actual system library is system dependent." Looks like you'd need to get the path that the OS uses and do a file search on that