ClojureScript

cljsc.bat emit FileNotFoundException when compile samples in windows

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Environment:
    in windows 7
  • Patch:
    Code

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"

  1. cljsc.bat.diff
    15/Sep/13 3:16 AM
    0.5 kB
    Park Sang Kyu
  2. cljsc-path.bat
    25/Aug/13 1:13 AM
    0.6 kB
    Park Sang Kyu

Activity

Hide
David Nolen added a comment -

Can we please get a proper git diff thanks (and please send in your CA)! Also would be nice to get Windows users to check this out.

Show
David Nolen added a comment - Can we please get a proper git diff thanks (and please send in your CA)! Also would be nice to get Windows users to check this out.
Hide
Park Sang Kyu added a comment -

git diff

Show
Park Sang Kyu added a comment - git diff
Park Sang Kyu made changes -
Field Original Value New Value
Attachment cljsc.bat.diff [ 12261 ]
Hide
David Nolen added a comment -

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

Show
David Nolen added a comment - Thank you! Have you sent in your CA? http://clojure.org/contributing

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: