19 Jan 2012, 17:28
Precision1_bigger_pragsmall

Paul Reiners (5 posts)

How the heck do I run src/examples/generator.clj? I tried the following but got an error:

` C:\Documents and Settings\vreinpa\My Documents\Books\ProgrammingClojure\code\src>java -cp “.;C:\clojure-1.3.0\clojure-1.3.0.jar” clojure.main “C:\Documents and Settings\vreinpa\My Documents\Books\ProgrammingClojure\code\src\examples\generator.clj” Exception in thread “main” java.lang.RuntimeException: java.lang.ClassNotFoundException: examples.midi.MidiNote at clojure.lang.Util.runtimeException(Util.java:165) at clojure.lang.Compiler.eval(Compiler.java:6476) at clojure.lang.Compiler.eval(Compiler.java:6455) at clojure.lang.Compiler.load(Compiler.java:6902) at clojure.lang.Compiler.loadFile(Compiler.java:6863) at clojure.main$load_script.invoke(main.clj:282) at clojure.main$script_opt.invoke(main.clj:342) at clojure.main$main.doInvoke(main.clj:426) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.lang.Var.invoke(Var.java:401) at clojure.lang.AFn.applyToHelper(AFn.java:161) at clojure.lang.Var.applyTo(Var.java:518) at clojure.main.main(main.java:37) Caused by: java.lang.ClassNotFoundException: examples.midi.MidiNote at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:61)

    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at examples.generator$eval7.invoke(generator.clj:4)
    at clojure.lang.Compiler.eval(Compiler.java:6465)
    ... 11 more `
  You must be logged in to comment