Need help starting a Socket REPL with Lein on Windows for Chlorine use

Hi,
I’m trying to follow the instructions on the Chlorine for Atom page: https://atom.io/packages/chlorine

I’ve switched to my project directory containing the project.clj file in cmd prompt and tried copying and pasting the line from that page and running it:

JVM_OPTS='-Dclojure.server.myrepl={:port,5555,:accept,clojure.core.server/repl}' lein repl

But I get back this from cmd prompt:

'JVM_OPTS' is not recognized as an internal or external command, operable program or batch file.

If anyone can help me understand what I’m doing wrong that would be great thanks :slight_smile:

Those instructions assume Mac/Linux. Using environment variables like that doesn’t work on Windows.

I haven’t used Leiningen for years but you should be able to define :jvm-opts inside project.clj to this, and I’d suggest putting it in a separate profile such as :socket so you can choose whether to start the Socket REPL or not:

# start regular nREPL / REPL only:
$ lein repl

# also start that socket REPL:
$ lein with-profile +socket repl
1 Like

Thank you very much for the help Sean!
I’ve got Chlorine connected and working :grinning:

1 Like