Skip to content

Instantly share code, notes, and snippets.

@raek raek/Main.java
Created Oct 8, 2011

Embed
What would you like to do?
(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
You can’t perform that action at this time.