Skip to content

Instantly share code, notes, and snippets.

@ajchemist
Created September 29, 2016 02:17
Show Gist options
  • Save ajchemist/d37464c934d95318f942a041914ff1b7 to your computer and use it in GitHub Desktop.
Save ajchemist/d37464c934d95318f942a041914ff1b7 to your computer and use it in GitHub Desktop.
java shim
package shim;
import clojure.lang.RT;
import clojure.lang.Symbol;
import clojure.lang.Var;
public class Main {
public static void main(String[] args) {
Var REQUIRE = RT.var("clojure.core", "require");
Var APPLY = RT.var("clojure.core", "apply");
REQUIRE.invoke(Symbol.intern("user"));
APPLY.invoke(RT.var("user", "-main"), args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment