Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 1.7 KB

File metadata and controls

48 lines (29 loc) · 1.7 KB

Setup Editor - Windows

Required Software

Required Software - Java JDK 11

Download and install release 11.0.1 from OpenJDK. When Java is installed you may also add need to add java to your PATH and export JAVA_HOME:

> nano ~/.bashrc

export JAVA_HOME=<JAVA_INSTALL_PATH>
export PATH=$JAVA_HOME/bin:$PATH

Verify that Java is installed and working:

> javac -version

Notes

If you are using IntelliJ for lein tasks, you will need to first add the new SDK (file->project structure/SDKs) and then set the project SDK setting (file->project structure/Project) to the new version.

Required Software - Leiningen

Start by following the Windows instructions in Defold Readme.

  • Start msys.bat as described

  • Download the lein.sh script from Leiningen.org Put it somewhere in your (msys) path - if you're lazy, put it in C:\MinGW\msys\1.0\bin. You might need to chmod a+x lein.sh.

  • Run lein in the editor subdirectory This will attempt to download leiningen and dependencies to your home directory.

    • If this fails with message

        Could not find or load main class clojure.main
      

      Try pointing your HOME environment variable to your “windows home”. For instance change it from /home/Erik.Angelin (msys) to /c/Users/erik.angelin:

      export HOME="/c/Users/erik.angelin"
      

      The problem seems to be that the (windows) java class path points to an invalid home directory.

    • If this fails because the github certificate cannot be verified:

        export HTTP_CLIENT='wget --no-check-certificate -O'