Permalink
Browse files

initial commit, printing hello world

  • Loading branch information...
Jay Fields
Jay Fields committed Dec 24, 2011
0 parents commit a6e0e472467707d0f6caa23fb48fb0beda130053
Showing with 40 additions and 0 deletions.
  1. +8 −0 .gitignore
  2. +13 −0 README
  3. +5 −0 project.clj
  4. +4 −0 src/clojure/interop/core.clj
  5. +10 −0 src/java/interop/Example.java
@@ -0,0 +1,8 @@
/pom.xml
*jar
/lib
/classes
/native
/.lein-failures
/checkouts
/.lein-deps-sum
13 README
@@ -0,0 +1,13 @@
# interop
FIXME: write description
## Usage
FIXME: write
## License
Copyright (C) 2011 FIXME
Distributed under the Eclipse Public License, the same as Clojure.
@@ -0,0 +1,5 @@
(defproject interop "1.0.0-SNAPSHOT"
:description "FIXME: write description"
:java-source-path "src/java"
:source-path "src/clojure"
:dependencies [[org.clojure/clojure "1.3.0"]])
@@ -0,0 +1,4 @@
(ns interop.core)
(defn print-string [arg]
(println arg))
@@ -0,0 +1,10 @@
package interop;
import clojure.lang.RT;
public class Example {
public static void main(String[] args) throws Exception {
RT.loadResourceScript("interop/core.clj");
RT.var("interop.core", "print-string").invoke("hello world");
}
}

0 comments on commit a6e0e47

Please sign in to comment.