Sorry to perform thread necromancy, but I believe that this problem is the same that I found a workaround for in a recent thread, and would love if you could confirm that a similar solution fixes this for you?
The thread is: https://groups.google.com/d/topic/clojure/br_sTSuWBJ8/discussion For me, the following allows your sample code to work: (defn wall-hack-method [class-name method-name params obj & args] (-> class-name (.getDeclaredMethod (name method-name) (into-array Class params)) (doto (.setAccessible true)) (.invoke obj (into-array Object args)))) (defn load-lib [class lib] (wall-hack-method java.lang.Runtime "loadLibrary0" [Class String] (Runtime/getRuntime) class lib)) (import swig_test.swig_test) (load-lib swig_test "swig_test") (swig_test/swig_test_whatever) Sorry that it's two years later now... -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en