Skip to content

Instantly share code, notes, and snippets.

@raek
Created October 8, 2011 22:52
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 raek/1273014 to your computer and use it in GitHub Desktop.
Save raek/1273014 to your computer and use it in GitHub Desktop.
(ns foo.bar)
(defn some-fn [x]
(println x))
import clojure.lang.RT;
import clojure.lang.Symbol;
public class Main {
public static void main(String[] args) {
// (require 'foo.bar)
// (foo.bar/some-fn "Hello interop!")
RT.var("clojure.core", "require").invoke(Symbol.intern("foo.bar"));
RT.var("foo.bar", "some-fn").invoke("Hello interop!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment