Reputation: 66650
I've try to compile the file using clojurescript compiler, I've followed instrcutions on Quick-Start but when I run:
java -cp cljs.jar:src clojure.main build.clj
I've got exception:
Exception in thread "main" java.io.FileNotFoundException: src (Nie ma takiego pliku ani katalogu), compiling:(/home/kuba/projects/jcubic/src/hello_world/build.clj:3:1)
the text in parenthesis is "No such file or directory".
the contents of build.clj is:
(require 'cljs.build.api)
(cljs.build.api/build "src" {:output-to "out/main.js"})
Upvotes: 0
Views: 392
Reputation: 23
I believe your problem is in location of the build file. It should be located in the project's rootdir, not underneath the src/hello_world dir. That is also from where you should invoke the build script. That way the src dir is on the right place and you do not need to create another src
Upvotes: 1