So on my Clojurescript journey, the first roadblock I hit was corporate proxy. I don’t know why Java, maven, clojure (everybody?) doesn’t respect the environment variables but this is a real pain.

Getting started

Clojurescript is written in Clojure which requires Java. So we need to get all three up and running.


To get Java JDK and JRE, run:

$ sudo apt install openjdk-11-jre
$ sudo apt install openjdk-11-jdk

For proxy settings, edit /etc/java-11-openjdk/

Example for http proxy in the file:



This was the hardest to figure out. And it’s crazy (coming from a newbie perspective) that maven doesn’t make it easy to just reuse Java or System proxies or respect the http_proxy variable. Madness. Moreover, you need to create the configuration file at ~/.m2/settings.xml with the following contents:



make sure rlwrap is installed (sudo apt install rlwrap)

Download and install clojure using the following commands:

$ curl -O  # This is the current version as of writing
$ chmod +x
$ sudo ./

Using the command clj launches the repl. Thankfully!


Follow the steps on

curl -O ""
chmod a+x lein
mv lein ~/bin/

Create a Test Project

To test lein and figwheel+reagent:

$ lein new figwheel some-name -- --reagent