clj-on-windows

Jacob Rosenzweig 2021-11-14T20:55:15.001400Z

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

Jacob Rosenzweig 2021-11-14T20:55:27.001600Z

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

borkdude 2021-11-14T20:57:02.002Z

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

Jacob Rosenzweig 2021-11-14T20:57:28.002400Z

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

borkdude 2021-11-14T20:57:44.002900Z

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

Jacob Rosenzweig 2021-11-14T20:57:58.003200Z

That command fails too hahaha

Jacob Rosenzweig 2021-11-14T20:58:08.003500Z

I can go into the shell though.

borkdude 2021-11-14T20:58:09.003600Z

what do you get for where clj

Jacob Rosenzweig 2021-11-14T20:58:22.003800Z

nothing

borkdude 2021-11-14T20:58:30.004Z

are you in powershell?

Jacob Rosenzweig 2021-11-14T20:58:33.004200Z

Yup

Jacob Rosenzweig 2021-11-14T20:58:41.004400Z

Is it a JAVA_HOME issue?

borkdude 2021-11-14T20:59:35.005200Z

Do you remember how you installed clj?

Jacob Rosenzweig 2021-11-14T20:59:53.005400Z

Via https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows

Jacob Rosenzweig 2021-11-14T20:59:54.005600Z

I believe

Jacob Rosenzweig 2021-11-14T21:00:19.005900Z

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

borkdude 2021-11-14T21:00:35.006400Z

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

Jacob Rosenzweig 2021-11-14T21:00:48.006700Z

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

borkdude 2021-11-14T21:01:12.007100Z

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

borkdude 2021-11-14T21:01:23.007300Z

https://github.com/littleli/scoop-clojure

Jacob Rosenzweig 2021-11-14T21:01:40.007700Z

Oh oh oh I think I used scoop the first time

Jacob Rosenzweig 2021-11-14T21:01:55.007900Z

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

borkdude 2021-11-14T21:02:20.008300Z

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

borkdude 2021-11-14T21:02:47.008700Z

just

scoop bucket add scoop-clojure 

scoop install clojure

Jacob Rosenzweig 2021-11-14T21:04:07.009Z

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

Jacob Rosenzweig 2021-11-14T21:04:24.009400Z

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

Jacob Rosenzweig 2021-11-14T21:04:35.009800Z

It's in chocolatey

borkdude 2021-11-14T21:04:36.009900Z

this is because you're in powershell probably

borkdude 2021-11-14T21:04:42.010100Z

ok uninstall that

borkdude 2021-11-14T21:04:49.010400Z

it's probably old

Jacob Rosenzweig 2021-11-14T21:07:30.010600Z

It works now! It's alive.

Jacob Rosenzweig 2021-11-14T21:08:19.011100Z

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

🎉 1