kanaka / clojurescript

Clojure to JS compiler (patched to allow compiling of compiler to ClojureScript)
189 stars 15 forks source link

can't run stuff as described in README #37

Closed sandover closed 11 years ago

sandover commented 11 years ago

I'm hoping to use this project to get some quick and dirty .js from .cljs in the context of a node project. I can't run any of the examples, e.g.

cd node
../bin/cljsc ../src/cljs/nodecljs.cljs > nodecljs.js

I get

Exception in thread "main" java.lang.NoClassDefFoundError: clojure/main
Caused by: java.lang.ClassNotFoundException: clojure.main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

There's no project.clj so lein deps can't be the answer. . . halp?

thanks.

sandover commented 11 years ago

Forgot about script/bootstrap -- my bad.

Suggestion: update the bootstrap script to Clojure 1.5.1