for anyone who has this same problem. The only solution that I've
gotten so far that works is to use a java file that launches my
clojure files. I'm still looking for a better way to do this.
Here is the code for the launcher.
import java.io.OutputStreamWriter;
import java.io.IOException;
import clojure.lang.RT;
import clojure.lang.Compiler;
import clojure.lang.Var;
public class Launcher {
public static void main(String[] args) throws Exception {
// Load the Clojure script -- as a side effect this
initializes the runtime.
RT.loadResourceScript("main/ironlily.clj");
// Get a reference to the -main function, which is in the
namespace ironlily.
Var main = RT.var("ironlily", "-main");
// Call it!
Object result = main.invoke();
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---