Skip to content
Raynes edited this page Oct 31, 2011 · 8 revisions

Running tryclojure is as easy as hitting your head on a low-hanging pipe. As of right now, its build file is compatible with both cake and leiningen, but I use cake and the official tryclojure build tool is cake. Compatibility may not last forever.

If you're using lein, :jvm-opts are set in the project.clj file to set the policy file for tryclojure to the example.policy file included in the repository. If you're using cake, you'll need to put the following line in your .cake/config file (in tryclojure's root):

jvm.opts = -Djava.security.policy=example.policy

Or, just copy example.policy to ~/.java.policy. Either one of these will grant permissions necessary for your code to run.

The general workflow for running tryclojure is as follows (replace cake with lein if you're using leiningen):

cake deps
cake repl
user=> (use 'tryclojure.core)
nil
user=> (tryclj)

That should run tryclojure on port 8801.

Clone this wiki locally