On Tue, Dec 20, 2011 at 3:52 PM, Sean Corfield <[email protected]>wrote:
> On Tue, Dec 20, 2011 at 11:54 AM, Aaron Cohen <[email protected]> wrote: > >> You could just call: (System/loadLibrary "vtkCommonJava") > > This doesn't work, the library will be loaded into the wrong classloader. > > That's the reason for RT.loadLibrary in the first place. > > The source of RT.loadLibrary: > > // Load a library in the System ClassLoader instead of Clojure's own. > public static void loadLibrary(String libname){ > System.loadLibrary(libname); > } > Please check your assumptions. The classloader that loaded RT is the one that is used by the loadLibrary call in RT.loadLibrary. If you call System/loadLibrary from a clojure form, it will be an instance of DynamicClassLoader that loads the library. This does not work. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
