I've been trying to set up Clojure to use Overtone.
However, I get this message when I try to fire up Lein inside of the Project folder:
Exception in thread "main" java.lang.Exception: EOF while reading string (project.clj:5)
at clojure.lang.Compiler.load(Compiler.java:5864)
at clojure.lang.Compiler.loadFile(Compiler.java:5821)
at clojure.lang.RT$3.invoke(RT.java:296)
at leiningen.core$read_project$fn__2128.invoke(core.clj:127)
at leiningen.core$read_project.invoke(core.clj:126)
at leiningen.core$read_project.invoke(core.clj:130)
at leiningen.core$_main.doInvoke(core.clj:320)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:542)
at leiningen.core$_main.invoke(core.clj:332)
at user$eval42.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5425)
at clojure.lang.Compiler.eval(Compiler.java:5392)
at clojure.core$eval.invoke(core.clj:2382)
at clojure.main$eval_opt.invoke(main.clj:235)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$script_opt.invoke(main.clj:270)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:436)
at clojure.lang.Var.invoke(Var.java:373)
at clojure.lang.AFn.applyToHelper(AFn.java:167)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)
Caused by: java.lang.Exception: EOF while reading string
at clojure.lang.LispReader$StringReader.invoke(LispReader.java:407)
at clojure.lang.LispReader.readDelimitedList(LispReader.java:1051)
at clojure.lang.LispReader$VectorReader.invoke(LispReader.java:998)
at clojure.lang.LispReader.readDelimitedList(LispReader.java:1051)
at clojure.lang.LispReader$VectorReader.invoke(LispReader.java:998)
at clojure.lang.LispReader.readDelimitedList(LispReader.java:1051)
at clojure.lang.LispReader$ListReader.invoke(LispReader.java:900)
at clojure.lang.LispReader.read(LispReader.java:145)
at clojure.lang.Compiler.load(Compiler.java:5854)
... 24 more
I have ascertained that it's not due to mismatched parens. I did a search around the Internet and found this. It seems that people solved their problems by switching to JDK from JRE. Note that they are talking about Windows.
I am using Ubuntu Linux and have never developed in Java. I have only a cursory understanding of the different Java technologies. Could someone help me figure out this please! That would be very kind of you. It's a very unpleasant snag am I was just trying to get started in the "oh so wonderful" Clojure. (It is wonderful, no sarcasm intended.)
Question 2: I am very new to Clojure. I used Scheme while doing the SICP in college and decided to move to a more modern LISP dialect. I am comfortable with the syntax however I want to know if Clojure is tied heavily to the "Java ecosystem"? I know it is tied to Java in the general sense of the word; but do you Clojure programmers feel like you are working in Java with just parens added or is Clojure really an ecosystem running on JVM? I had high hopes but after running into such a Java related snag I am pretty disappointed.
Here's the project.clj (Thanks for mentioning @Arthur Ulfeldt):
(defproject tutorial "1.0"
:dependencies [ [org.clojure/clojure "1.5.1"]
[overtone "0.8.1"] ])
It's from the "Getting Started" section at Overtone.