cljsc.bat emit FileNotFoundException when compile samples in windows

Description

cljsc.bat emit FileNotFoundException when it compile samples of the ClojureScript project in windows like below.

------------------------------------------------ Exception in thread "main" java.io.FileNotFoundException: Could not locate cljs/closure__init.class
or cljs/closure.clj on classpath:
------------------------------------------------
It is caused by lack of a backslash in the end of path of the system environment variable, %CLOJURESCRIPT_HOME% set by a user.
In the case CLASSPATH is set to "C:\\clojure\clojurescriptsrc\clj;C:\\clojure\clojurescriptsrc\cljs" and this make it impossible for javac to find cljs/clojure.clj file.

So it can be solved by adding a backslash to the path of %CLOJURESCRIPT_HOME%.

I attached the patched file, "cljsc-path.bat"

Environment

in windows 7

Activity

Show:
박상규
September 15, 2013, 9:16 AM

git diff

David Nolen
October 5, 2013, 5:55 PM

Thank you! Have you sent in your CA? http://clojure.org/contributing

박상규
June 19, 2014, 4:24 PM

Yes i have sent my CA.

David Nolen
June 19, 2014, 4:27 PM

Excellent, the patch is not correctly formatted. Can we get a new patch that conforms to http://github.com/clojure/clojurescript/wiki/Patches

Jeremy Sellars
May 15, 2018, 4:00 AM

A properly formatted patch.

When necessary, adds missing path separator at the end of the CLOJURESCRIPT_HOME
environment variable.

Assignee

Unassigned

Reporter

박상규

Labels

Approval

None

Patch

Code

Priority

Minor
Configure