ClojureScript Quick Start - Error: Could not find or load main class clojure.main

1,306 views
Skip to first unread message

gilmoretj

unread,
Jul 11, 2016, 7:59:42 AM7/11/16
to ClojureScript
I suspect there is a MS Windows-specific configuration step missing from the Quick Start guide (https://github.com/clojure/clojurescript/wiki/Quick-Start).

I was alright until I reached "Auto-building". Running the compilation step for watch.clj, I got the error message "Error: Could not find or load main class clojure.main".

I carried on to the "Running ClojureScript on Node.js" section only to encounter the same error running the node.clj build.

The initial build.clj build worked fine.













Dmitry Kolobov

unread,
Jul 17, 2016, 9:29:53 PM7/17/16
to ClojureScript
I am having the same issue with the NodeJS quick-start section on OSX 10.10.1.

David Nolen

unread,
Jul 18, 2016, 7:38:59 AM7/18/16
to clojur...@googlegroups.com
Notice that the Windows steps needs the classpath bits to be in quotes. Or did you already try that?

java -cp "cljs.jar:src" clojure.main watch.clj

David
















--
Note that posts from new members are moderated - please be patient with your first post.
---
You received this message because you are subscribed to the Google Groups "ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.

David Nolen

unread,
Jul 18, 2016, 7:39:35 AM7/18/16
to clojur...@googlegroups.com
And all the previous steps worked for you?

Message has been deleted

gilmoretj

unread,
Aug 23, 2016, 9:54:32 AM8/23/16
to ClojureScript
David,

Apologies for my delay.

I have repeated the Quick Start guide given your advice and managed to proceed much further. I skipped both the Browser and Node REPL sections but managed to get the watch build and node build working fine.

I have downloaded the rlwrap tar and a 64bit edition of Cygwin and will have to give the REPL sections a go.

Thanks.

Michael Stedman

unread,
Apr 5, 2017, 11:05:19 AM4/5/17
to ClojureScript
I bumped into this problem this morning. For Windows, in addition to the quotes, you also need to change the colon to a semi-colon, giving:

java -cp "cljs.jar;src" clojure.main watch.clj

Regards
Mike
Reply all
Reply to author
Forward
0 new messages