Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem compiling in Clojure
    text
    copied!<p>I've been trying to compile a very simple test.clj in Clojure without any success. I have a <a href="http://groups.google.com/group/clojure/browse_thread/thread/1adda2c8053f304d#" rel="nofollow noreferrer">thread</a> on the <a href="http://groups.google.com/group/clojure" rel="nofollow noreferrer">Clojure Google Group</a> with several responses, but nothing has helped. To quickly summarize, here is my clojure file:</p> <pre><code>(ns test.test (:gen-class)) (defn -main [gre] (println (str "Hello " gre))) </code></pre> <p>Basically it's the example file provided in the <a href="http://clojure.org/compilation" rel="nofollow noreferrer">Clojure documentation</a>.</p> <p>I have placed this file appropiately in <code>clojure/src/test/test.clj</code>, and should be able to compile with <code>(compile 'test.test)</code>, but I keep getting the error: <pre>java.io.IOException: The system cannot find the path specified (test.clj:1)</pre> which leads me to believe it is a classpath problem. I have tried running Clojure with all the standard commands given in the <a href="http://clojure.org/repl_and_main" rel="nofollow noreferrer">Clojure documenation</a> as well as the latest suggestion from the thread <code>java -classpath .;src;classes;clojure.jar clojure.main</code>.</p> <p>If it helps, my filesystem looks like this:</p> <pre><code>-+-clojure +-classes/ +-+-src/ | |-+-test/ | | \-test.clj +-\-test.clj +-test.clj +-clojure.jar </code></pre> <p>P.S. I am running on Vista Ultimate so it may <em>possibly</em> be a permissions problem, but I have checked the permissions and could not find anything wrong with them.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload