clj-on-windows 2021-11-14

Anyone ever get an error like this? Exception in thread "main" java.io.FileNotFoundException: -Sdeps (The system cannot find the file specified)

Trying to run this for context: clj -Sdeps "{:deps {leiningen/leiningen {:mvn/version \""2.9.0\""}}}" -m leiningen.core.main new play-cljc hello-world

@rosenjcb could it be that you have a very old installation of clojure on your system?

Well I only started learning clojure ~4 months ago, but maybe!

Can you do clj --version and see what it prints?

That command fails too hahaha

I can go into the shell though.

what do you get for where clj

nothing

are you in powershell?

Yup

Is it a JAVA_HOME issue?

Do you remember how you installed clj?

I believe

But who knows, maybe I installed it earlier "by accident

if you cannot run clj --version it's a sign that something is not right

Yup, I'm going to try to purge this thing from my system. Ugh windows is annoying

if you want to have an easy install procedure, try out scoop-clojure.

Oh oh oh I think I used scoop the first time

Or I tried and I had errors like Couldn't find manifest for 'adoptopenjdk-lts-hotspot'.

I don't think you need to install the java stuff if you already have a java on your system

just

scoop bucket add scoop-clojure 

scoop install clojure

I had to type where.exe clj to get it work

I cannot believe the engineers at MS thought that was smart.

It's in chocolatey

this is because you're in powershell probably

ok uninstall that

it's probably old

It works now! It's alive.

Thanks @borkdude. The play-clj penguin is on my screen now.

🎉 1