Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Tyler Morten edited this pageJul 28, 2014 ·17 revisions

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.

MinGW

If you are using MinGW (e.g., the Git Bash install on Windows) you can follow the standardquickstart instructions.

Cygwin

script\bootstrap should work without changes. Run this script to get all of the ClojureScript dependencies.If you get "\r command not found" error make sure you github line endings are setup as perGithub Line endings

The other scripts that are typically used,bin/cljsc,script/repl andscript/repljs should work after making one small modification:everywhere a Java classpath is defined, change the colons to semicolons.

Append the following line toscript/setup_classpath.sh andscript/run should launch without issues.

if [ [ `uname` == CYGWIN* ] ]; then  CLJSC_CP=`cygpath -mp ${CLJSC_CP}`fi

For example, inbin/cljsc, change the line:

for next in lib/*: src/clj: src/cljs; do

to

for next in lib/*\; src/clj\; src/cljs; do

Windows Command Prompt

Batch files are included forcljsc,repl andrepljs. Thescript\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:

cd closure\library\closurejar cf goog.jar googcopy goog.jar ..\..\..\lib

See theQuick Start page for general instructions about getting started with ClojureScript.

Server JVM Error

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'.

Installing JDK 8 will fix this problem, as it includes server/jvm.dll in the JRE. Otherwise, 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

Is creating a frankenstein's monster of JRE's a good idea? A simpler solution is to just put the jdk\bin folder on the front of your path.

Please Contribute

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.

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp