-
Notifications
You must be signed in to change notification settings - Fork 790
Windows Setup
Depending on how one plans to work with ClojureScript on Windows, one will either need to make a few modifications to the command-line scripts or manually perform the setup steps included in the bootstrap script.
script\bootstrap
should work without changes. Run this script to get all of the ClojureScript dependencies.
The other scripts that are typically used, bin/cljsc
, script/repl
and script/repljs
should work after making one small modification: everywhere a Java classpath is defined, change the colons to semicolons.
For example, in bin/cljsc
, change the line:
for next in lib/*: src/clj: src/cljs; do
to
for next in lib/*\; src/clj\; src/cljs; do
Batch files are included for cljsc
, repl
and repljs
. The script\bootstrap
file is more difficult to port to a batch file. For now, the work that bootstrap does will need to be performed manually.
In the ClojureScript directory do the following:
- Create a
lib
directory - Download a Clojure 1.3 jar file and put it in the
lib
directory - Download the CloSure library and unpack it into
closure/library
- Create a goog.jar file and copy to
lib
cd closure\library\closure
jar cf goog.jar goog
copy goog.jar ..\..\..\lib
- Download the CloSure Compiler and copy the
compiler.jar
file intolib
- Download Rhino and copy the
js.jar
file intolib
See the Quick Start page for general instructions about getting started with ClojureScript.
Some workstation or server will not come with server JVM after you install JDK on it. When you run server JVM by 'java -server MyApp', you will get the error such as:
Error: no `server' JVM at `C:\Program Files\Java\jre1.6.0\bin\server\jvm.dll'.
There is a little trick to get the server JVM up and running:
Copy 'server' folder from the JDK's JRE's bin folder (example: C:\Program Files\Java\jdk1.6.0\jre\bin\server)
Paste the 'server' folder to JRE's bin folder(example: C:\Program Files\Java\jre1.6.0\bin)
Done
There is not a lot of Windows use on the core team so the quality of Windows support will be community driven. If you work on Windows, use ClojureScript and have signed a CA, then please contribute if you think this could be better.
- Rationale
- Quick Start
- Differences from Clojure
- [Usage of Google Closure](Google Closure)