Skip to content

Instantly share code, notes, and snippets.

@stephenroller
Created March 14, 2009 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephenroller/78950 to your computer and use it in GitHub Desktop.
Save stephenroller/78950 to your computer and use it in GitHub Desktop.
sr ~/Wo/compojuretest $ cljr
Clojure
1:1 user=> (set! *compile-path* "./")
"./"
1:2 user=> (compile 'jnatest)
jnatest
1:3 user=> (import 'com.sun.jna.Library 'com.sun.jna.Native)
nil
1:4 user=> (import 'JnaTest)
nil
1:5 user=> (def glibc (Native/loadLibrary "c" JnaTest))
#'user/glibc
1:6 user=> (.getpid glibc)
java.lang.IllegalArgumentException: No matching field found: getpid for class $Proxy0 (repl-1:6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment