clj-on-windows

For those interested in making clj on Windows https://dev.clojure.org/jira/browse/TDEPS-67. Also see https://github.com/littleli/scoop-clojure.
pez 2021-04-15T06:29:11.230300Z

bb works. deps.bat just returns silently, $LASTEXITCODE contains 0. Here follows some new clues I picked up:

pez 2021-04-15T06:33:19.233500Z

bb clojure and java -jar <path-to.jar>\deps.clj.jar both work if I run them from the project directory of the deps.clj repository. • None of them work from any other directory I’ve tried. • clj and clojure both give me the message Error: Could not find or load main class clojure.main

pez 2021-04-15T06:34:59.235200Z

Now, if we could find out what makes deps.clj work in its project directory, maybe we can “fix” that so that I can start println my way to some more clues by running it in dev?

littleli 2021-04-15T09:08:48.235300Z

fyi cmd-clj and cmd-clojure are scoop shims that launch clojure from the cmd.exe, they still require powershell, but don't expect powershell as a initial prompt.

littleli 2021-04-15T09:09:07.235500Z

I would recommend to avoid them at all costs 🙂

littleli 2021-04-15T09:11:49.235700Z

[[
   "powershell.exe",
   "cmd-clojure",
   "-NoProfile -ExecutionPolicy Bypass -Command Invoke-Clojure"
],
[
   "powershell.exe",
   "cmd-clj",
   "-NoProfile -ExecutionPolicy Bypass -Command Invoke-Clojure"
]]
This is a prescription for those two shims

borkdude 2021-04-15T11:28:39.236900Z

@pez Please add some prn in the arguments to the java processes. There is a shell-command function where you can just hook this in. And then make an uberjar with lein uberjar and then try it out again in the failing state.

borkdude 2021-04-16T09:04:41.237900Z

@pez It seems there are newlines after the space. Possibly related to TDEPS-56. https://github.com/clojure/brew-install/blob/1.10.3/CHANGELOG.md Can you reset to SHA a301f478f42452c829d92260a14fff8e8fcfea1a which is based on 1.10.384 and try again?

pez 2021-04-16T09:16:16.238300Z

:thumbsup:

pez 2021-04-16T15:30:44.238500Z

Now having a look at it. I don’t know where to reset the SHA. 😃

borkdude 2021-04-16T15:32:01.238700Z

git reset <sha> --hard

borkdude 2021-04-16T15:32:03.238900Z

in the project

borkdude 2021-04-16T15:32:10.239100Z

and then re-build the uberjar

pez 2021-04-16T15:40:32.239300Z

Thanks. Same problem, though:

PS C:\Users\Public&gt; java -jar .\deps.clj-0.0.12-SNAPSHOT-standalone.jar
Could not find C:\Users\Peter Str÷mberg\.deps.clj\1.10.3.814\ClojureTools\clojure-tools-1.10.3.814.jar
Attempting download from <https://download.clojure.org/install/clojure-tools-1.10.3.814.zip>
Error building classpath. C:\Users\Peter (Access is denied)
java.io.FileNotFoundException: C:\Users\Peter (Access is denied)
        at java.io.FileOutputStream.open0(Native Method)

borkdude 2021-04-16T15:42:37.239500Z

can you still put those prn in there or do you have the same output?

pez 2021-04-16T15:49:18.239700Z

Yeah. Will do.

pez 2021-04-16T15:56:03.239900Z

From the project dir:

PS C:\Users\Peter Strömberg\win-proj\deps.clj&gt; java -jar .\target\deps.clj-0.0.12-SNAPSHOT-standalone.jar          
["C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe" "-Xms256m" "-classpath" "C:\\Users\\Peter Str÷mberg\\.deps.clj\\1.10.3.814\\ClojureTools\\clojure-tools-1.10.3.814.jar" "clojure.main" "-m" "clojure.tools.deps.alpha.script.make-classpath2" "--config-user" "C:\\Users\\Peter Str÷mberg\\.clojure\\deps.edn" "--config-project" "deps.edn" "--basis-file" ".cpcache\\1B6891D24236BC1B9DA7E4ED8F979305.basis" "--libs-file" "\"\".cpcache\\1B6891D24236BC1B9DA7E4ED8F979305.libs\"\"" "--cp-file" "\"\".cpcache\\1B6891D24236BC1B9DA7E4ED8F979305.cp\"\"" "--jvm-file" "\"\".cpcache\\1B6891D24236BC1B9DA7E4ED8F979305.jvm\"\"" "--main-file" "\"\".cpcache\\1B6891D24236BC1B9DA7E4ED8F979305.main\"\""]
["C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe" "-Dclojure.basis=.cpcache\\1B6891D24236BC1B9DA7E4ED8F979305.basis" "-Dclojure.libfile=.cpcache\\1B6891D24236BC1B9DA7E4ED8F979305.libs" "-classpath" "src;resources;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\clojure\\1.10.3\\clojure-1.10.3.jar;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\core.specs.alpha\\0.2.56\\core.specs.alpha-0.2.56.jar;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\spec.alpha\\0.2.194\\spec.alpha-0.2.194.jar" "clojure.main"]
Clojure 1.10.3

borkdude 2021-04-16T15:56:56.240100Z

Hmm, it seems the newlines aren't there this time

pez 2021-04-16T15:57:37.240300Z

Outside project dir:

PS C:\Users\Public&gt; java -jar .\deps.clj-0.0.12-SNAPSHOT-standalone.jar
["C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe" "-Xms256m" "-classpath" "C:\\Users\\Peter Str÷mberg\\.deps.clj\\1.10.3.814\\ClojureTools\\clojure-tools-1.10.3.814.jar" "clojure.main" "-m" "clojure.tools.deps.alpha.script.make-classpath2" "--config-user" "C:\\Users\\Peter Str÷mberg\\.clojure\\deps.edn" "--config-project" "deps.edn" "--basis-file" "C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.basis" "--libs-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.libs\"\"" "--cp-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.cp\"\"" "--jvm-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.jvm\"\"" "--main-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.main\"\""]
Error building classpath. C:\Users\Peter (Access is denied)
java.io.FileNotFoundException: C:\Users\Peter (Access is denied)

borkdude 2021-04-16T15:59:57.240500Z

I see a difference here between the --basis-file: this contains the path with space as well whereas in the first example it doesn't

borkdude 2021-04-16T16:00:42.240700Z

That is what I tried to fix with this commit: https://github.com/borkdude/deps.clj/commit/c1ad336306f726c5929d0202e9c540d01cc7e5d3

borkdude 2021-04-16T16:00:49.240900Z

Can you perhaps try that commit and run again?

pez 2021-04-16T16:04:13.241100Z

reset the sha?

pez 2021-04-16T16:08:49.241300Z

PS C:\Users\Peter Strömberg\win-proj\deps.clj&gt; cp target\deps.clj-0.0.13-standalone.jar C:\Users\Public\
PS C:\Users\Peter Strömberg\win-proj\deps.clj&gt; java -jar C:\Users\Public\deps.clj-0.0.13-standalone.jar
["C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe" "-Dclojure.basis=.cpcache\\1B6891D24236BC1B9DA7E4ED8F979305.basis" "-Dclojure.libfile=.cpcache\\1B6891D24236BC1B9DA7E4ED8F979305.libs" "-classpath" "src;resources;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\clojure\\1.10.3\\clojure-1.10.3.jar;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\core.specs.alpha\\0.2.56\\core.specs.alpha-0.2.56.jar;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\spec.alpha\\0.2.194\\spec.alpha-0.2.194.jar" "clojure.main"]
Clojure 1.10.3
user=&gt;

pez 2021-04-16T16:09:17.241500Z

PS C:\Users\Public&gt; java -jar .\deps.clj-0.0.13-standalone.jar
["C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe" "-Xms256m" "-classpath" "C:\\Users\\Peter Str÷mberg\\.deps.clj\\1.10.3.822\\ClojureTools\\clojure-tools-1.10.3.822.jar" "clojure.main" "-m" "clojure.tools.deps.alpha.script.make-classpath2" "--config-user" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\deps.edn\"\"" "--config-project" "\"\"deps.edn\"\"" "--basis-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.basis\"\"" "--libs-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.libs\"\"" "--cp-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.cp\"\"" "--jvm-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.jvm\"\"" "--main-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.main\"\""]
Error building classpath. C:\Users\Peter (Access is denied)
java.io.FileNotFoundException: C:\Users\Peter (Access is denied)

pez 2021-04-16T16:09:52.241700Z

don’t know if you want the output from both still, so please stop me if you only want it from the failing one ¯\(ツ)

pez 2021-04-16T16:10:38.241900Z

Maybe you should tunnel in to my machine. 😄

pez 2021-04-16T16:11:38.242100Z

I’m fine with being your remote, though, so that was mostly a joke. (But also an offer, up to you.)

borkdude 2021-04-16T16:19:08.242300Z

so the classpath arg isn't double quoted here but the rest seems to be

borkdude 2021-04-16T16:19:24.242500Z

let me try to apply the same thing for the classpath

borkdude 2021-04-16T16:25:10.242700Z

Please try commit bf4bf48df67fbd0932ab65021cea580d4d3230d5 (you will have to run git fetch first)

pez 2021-04-16T16:27:38.242900Z

A new error at least 😃

PS C:\Users\Public&gt; java -jar .\deps.clj-0.0.13-standalone.jar
["C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe" "-Xms256m" "-classpath" "\"\"C:\\Users\\Peter Str÷mberg\\.deps.clj\\1.10.3.822\\ClojureTools\\clojure-tools-1.10.3.822.jar\"\"" "clojure.main" "-m" "clojure.tools.deps.alpha.script.make-classpath2" "--config-user" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\deps.edn\"\"" "--config-project" "\"\"deps.edn\"\"" "--basis-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.basis\"\"" "--libs-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.libs\"\"" "--cp-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.cp\"\"" "--jvm-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.jvm\"\"" "--main-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.main\"\""]
Error: Could not find or load main class Strömberg\.deps.clj\1.10.3.822\ClojureTools\clojure-tools-1.10.3.822.jar

borkdude 2021-04-16T16:28:02.243100Z

awesome

pez 2021-04-16T16:28:27.243300Z

It still works in the project dir. Let me know if you want the output.

borkdude 2021-04-16T16:29:13.243500Z

you know, using this print out there has to be some way to make it work by manipulating this and iterating on this in powershell

borkdude 2021-04-16T16:29:37.243700Z

without depending on deps.clj since you can just try this output as is

borkdude 2021-04-16T16:29:49.243900Z

and maybe we can then figure it out where it's not right

borkdude 2021-04-16T16:30:23.244100Z

> Error: Could not find or load main class Strömberg\.deps.clj\1.10.3.822\ClojureTools\clojure-tools-1.10.3.822.jar This seems to indicate that part of the classpath is interpreted as the main class

borkdude 2021-04-16T16:30:48.244300Z

let me try to remove all double quotes, maybe that helps ;)

borkdude 2021-04-16T16:32:01.244500Z

SHA: ce7f9d9db4fc498841ccbb36c510720f45ed798f

pez 2021-04-16T16:32:23.244700Z

I can iterate on the output in powershell, certainly. Just haven’t really given a thought to what it is I am printing. 😃

pez 2021-04-16T16:32:30.244900Z

Will try new SHA now.

borkdude 2021-04-16T16:33:09.245100Z

What is printed here is what the clojure CLI normally produces to invoke java

borkdude 2021-04-16T16:33:19.245300Z

it's all Java in the end you know

pez 2021-04-16T16:36:16.245500Z

Yeah, it is like with Calva jack-in. I just was in this remote-controlled mode 😃

pez 2021-04-16T16:36:19.245700Z

PS C:\Users\Public&gt; java -jar .\deps.clj-0.0.13-standalone.jar
["C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe" "-Xms256m" "-classpath" "C:\\Users\\Peter Str÷mberg\\.deps.clj\\1.10.3.822\\ClojureTools\\clojure-tools-1.10.3.822.jar" "clojure.main" "-m" "clojure.tools.deps.alpha.script.make-classpath2" "--config-user" "C:\\Users\\Peter Str÷mberg\\.clojure\\deps.edn" "--config-project" "deps.edn" "--basis-file" "C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.basis" "--libs-file" "C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.libs" "--cp-file" "C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.cp" "--jvm-file" "C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.jvm" "--main-file" "C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.main"]  
["C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe" "-Dclojure.basis=C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.basis" "-Dclojure.libfile=C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.libs" "-classpath" "src;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\clojure\\1.10.3\\clojure-1.10.3.jar;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\core.specs.alpha\\0.2.56\\core.specs.alpha-0.2.56.jar;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\spec.alpha\\0.2.194\\spec.alpha-0.2.194.jar" "clojure.main"]
Clojure 1.10.3
user=&gt; 

borkdude 2021-04-16T16:36:27.245900Z

it works now?

pez 2021-04-16T16:36:37.246100Z

It does.

borkdude 2021-04-16T16:36:49.246300Z

cool. can you also try from cmd.exe?

pez 2021-04-16T16:36:51.246500Z

Should I try using cmd.exe?

pez 2021-04-16T16:36:54.246700Z

Haha

borkdude 2021-04-16T16:37:17.246900Z

I'm not sure why I had this wrapping of double quotes then in the first place :/

pez 2021-04-16T16:38:43.247100Z

Sweetness.

C:\Users\Public&gt;java -jar .\deps.clj-0.0.13-standalone.jar
["C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe" "-Dclojure.basis=C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.basis" "-Dclojure.libfile=C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.libs" "-classpath" "src;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\clojure\\1.10.3\\clojure-1.10.3.jar;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\core.specs.alpha\\0.2.56\\core.specs.alpha-0.2.56.jar;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\spec.alpha\\0.2.194\\spec.alpha-0.2.194.jar" "clojure.main"]
Clojure 1.10.3
user=&gt;

pez 2021-04-16T16:39:09.247300Z

Much quicker in cmd.exe, I notice. Powershell is a slow thing.

borkdude 2021-04-16T16:40:01.247500Z

perhaps it's only quicker because the .cpcache was already there

pez 2021-04-16T16:40:41.247700Z

It keeps being quicker even when I try again a few times in PS and cmd.exe.

borkdude 2021-04-16T16:40:52.247900Z

ok

pez 2021-04-16T16:40:58.248100Z

Anyway. Also works in the project dir. 😃

borkdude 2021-04-16T16:41:32.248300Z

phew!

borkdude 2021-04-16T16:41:38.248500Z

One last thing I want to try...

pez 2021-04-16T16:41:47.248700Z

Shoot

borkdude 2021-04-16T16:42:12.248900Z

in Powershell, can you try:

java -jar ... -Sdeps '{:deps {medley/medley {:mvn/version "1.3.0"}}}' 

borkdude 2021-04-16T16:42:37.249100Z

(I choose PS here because quoting in PS is easier)

pez 2021-04-16T16:43:14.249400Z

three dots?

borkdude 2021-04-16T16:43:36.249600Z

that was an abbreviation for deps.clj-0.0.13-standalone.jar

pez 2021-04-16T16:43:42.249800Z

haha

borkdude 2021-04-16T16:44:13.250Z

We're almost there, total Windows corporate world domination

pez 2021-04-16T16:45:57.250200Z

Computer says no:

PS C:\Users\Public&gt; C:\Users\Public&gt;java -jar .\deps.clj-0.0.13-standalone.jar -Sdeps "{:deps {medley/medley {:mvn/version ""1.3.0""}}}"
C:\Users\Public&gt;java : The term 'C:\Users\Public&gt;java' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
At line:1 char:1
+ C:\Users\Public&gt;java -jar .\deps.clj-0.0.13-standalone.jar -Sdeps "{: ...
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\Public&gt;java:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

borkdude 2021-04-16T16:46:18.250400Z

use single quotes, like I told you :P

pez 2021-04-16T16:46:58.250600Z

Sorry I did. Copied the wrong thing. Tried a couple of things.

java -jar .\deps.clj-0.0.13-standalone.jar -Sdeps '{:deps {medley/medley {:mvn/version "1.3.0"}}}'
the path is correct and try again.
At line:1 char:1
+ C:\Users\Public&gt;java -jar .\deps.clj-0.0.13-standalone.jar -Sdeps '{: ...
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\Public&gt;java:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

borkdude 2021-04-16T16:47:38.250800Z

sorry, it should be this:

PS C:\Users\borkdude\dev\deps.clj&gt; java -jar .\target\deps.clj-0.0.13-standalone.jar -Sdeps '{:deps {medley/medley {:mvn/version \"1.3.0\"}}}'
Downloading: medley/medley/1.3.0/medley-1.3.0.pom from clojars
Downloading: medley/medley/1.3.0/medley-1.3.0.jar from clojars
Clojure 1.10.3
user=&gt;

pez 2021-04-16T16:47:39.251Z

Does that work on your machine?

borkdude 2021-04-16T16:47:55.251200Z

so single quotes + escaped double quote

borkdude 2021-04-16T16:48:16.251400Z

I'm trying to reproduce the case where passing EDN arguments in a windows process goes wrong

borkdude 2021-04-16T16:48:31.251600Z

anyway, I'll take it from here. your problem seems to be solved

pez 2021-04-16T16:48:57.251800Z

Now got

PS C:\Users\Public&gt; java -jar .\deps.clj-0.0.13-standalone.jar -Sdeps '{:deps {medley/medley {:mvn/version "1.3.0"}}}'
["C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe" "-Xms256m" "-classpath" "C:\\Users\\Peter Str÷mberg\\.deps.clj\\1.10.3.822\\ClojureTools\\clojure-tools-1.10.3.822.jar" "clojure.main" "-m" "clojure.tools.deps.alpha.script.make-classpath2" "--config-user" "C:\\Users\\Peter Str÷mberg\\.clojure\\deps.edn" "--config-project" "deps.edn" "--basis-file" "C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\799735091CA53A349F99BDC4F488693D.basis" "--libs-file" "C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\799735091CA53A349F99BDC4F488693D.libs" "--cp-file" "C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\799735091CA53A349F99BDC4F488693D.cp" "--jvm-file" "C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\799735091CA53A349F99BDC4F488693D.jvm" "--main-file" "C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\799735091CA53A349F99BDC4F488693D.main" "--config-data" "\"{:deps {medley/medley {:mvn/version 1.3.0}}}\""]
Error while parsing option "--config-data {:deps {medley/medley {:mvn/version 1.3.0}}}": java.lang.NumberFormatException: Invalid number: 1.3.0
PS C:\Users\Public&gt; the path is correct and try again.
the : The term 'the' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.    
At line:1 char:1
+ the path is correct and try again.
+ ~~~
    + CategoryInfo          : ObjectNotFound: (the:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
PS C:\Users\Public&gt; At line:1 char:1
The AT command has been deprecated. Please use schtasks.exe instead.

Invalid command.

The AT command schedules commands and programs to run on a computer at
a specified time and date. The Schedule service must be running to use
the AT command.

AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]]
AT [\\computername] time [/INTERACTIVE]
    [ /EVERY:date[,...] | /NEXT:date[,...]] "command"

\\computername     Specifies a remote computer. Commands are scheduled on the
                   local computer if this parameter is omitted.
id                 Is an identification number assigned to a scheduled
                   command.
/delete            Cancels a scheduled command. If id is omitted, all the
                   scheduled commands on the computer are canceled.
/yes               Used with cancel all jobs command when no further
                   confirmation is desired.
time               Specifies the time when command is to run.
/interactive       Allows the job to interact with the desktop of the user
                   who is logged on at the time the job runs.
/every:date[,...]  Runs the command on each specified day(s) of the week or
                   month. If date is omitted, the current day of the month
                   is assumed.
/next:date[,...]   Runs the specified command on the next occurrence of the
                   day (for example, next Thursday).  If date is omitted, the
                   current day of the month is assumed.
"command"          Is the Windows NT command, or batch program to be run.

PS C:\Users\Public&gt; + C:\Users\Public&gt;java -jar .\deps.clj-0.0.13-standalone.jar -Sdeps '{: ...
&gt;&gt; + ~~~~~~~~~~~~~~~~~~~~
&gt;&gt;     + CategoryInfo          : ObjectNotFound: (C:\Users\Public&gt;java:String) [], CommandNotFoundException
&gt;&gt;     + FullyQualifiedErrorId : CommandNotFoundException
&gt;&gt; 

pez 2021-04-16T16:49:22.252Z

Need to go cook some food. Family starves. Talk later!

borkdude 2021-04-16T16:49:25.252200Z

Use escaped double quotes:

'{:deps {medley/medley {:mvn/version \"1.3.0\"}}}'

pez 2021-04-16T16:51:39.252400Z

I copied your thing vebatim, I thought. But now.

S C:\Users\Public&gt; java -jar .\target\deps.clj-0.0.13-standalone.jar -Sdeps '{:deps {medley/medley {:mvn/version \"1.3.0\"}}}'
Error: Unable to access jarfile .\target\deps.clj-0.0.13-standalone.jar

pez 2021-04-16T16:51:54.252600Z

And wife is angry. Talk later for realz. 😃

borkdude 2021-04-16T16:52:09.252800Z

Haha ok

borkdude 2021-04-16T16:52:13.253Z

Same here. hahaha

borkdude 2021-04-16T16:52:20.253200Z

angry hungry wife

1❤️
borkdude 2021-04-16T17:59:51.253500Z

cmd.exe:

C:\Users\borkdude\dev\deps.clj&gt; java -jar .\target\deps.clj-0.0.13-standalone.jar -Sdeps "{:deps {medley/medley {:mvn/version ""1.3.0""}}}"
Clojure 1.10.3
user=&gt; (require '[medley.core :as medley])
nil
Hmm, all seems to work then

pez 2021-04-16T20:08:43.253700Z

Yes, now when I have eaten and can think better and use the right path things work here with the last command you wanted tested. Both in PS and in cmd.exe.

borkdude 2021-04-16T20:15:06.253900Z

Cool. Can you also test deps.clj 0.0.14 from Github? You could download the jar from there, or the executable

pez 2021-04-16T20:57:30.254100Z

Getting Started REPL using the shiny new deps.clj:

java -jar ".calva\deps.clj.jar" -Sdeps "{:deps {nrepl/nrepl {:mvn/version,""0.8.3""},cider/cider-nrepl {:mvn/version,""0.25.10""}}}"  -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
nREPL server started on port 62529 on host 127.0.0.1 - <nrepl://127.0.0.1:62529>

pez 2021-04-16T20:57:39.254300Z

🎉

borkdude 2021-04-16T20:58:59.254500Z

awesome!

pez 2021-04-16T20:59:03.254700Z

A tad slow testing this. I think I owe my poor Windows machine some little more RAM. 😃

pez 2021-04-16T20:59:13.254900Z

It has certainly deserved it!

borkdude 2021-04-16T20:59:21.255100Z

Absolutely

pez 2021-04-16T20:59:48.255300Z

This is great!

pez 2021-04-15T20:01:19.237500Z

PS C:\Users\Public&gt; java -jar .\deps.clj-0.0.13-standalone.jar
["C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe" "-Xms256m" "-classpath" "C:\\Users\\Peter Str÷mberg\\.deps.clj\\1.10.3.822\\ClojureTools\\clojure-tools-1.10.3.822.jar" "clojure.main" "-m" "clojure.tools.deps.alpha.script.make-classpath2" "--config-user" "C:\\Users\\Peter Str÷mberg\\.clojure\\deps.edn" "--config-project" "deps.edn" "--basis-file" "C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.basis" "--libs-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.libs\"\"" "--cp-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.cp\"\"" "--jvm-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.jvm\"\"" "--main-file" "\"\"C:\\Users\\Peter Str÷mberg\\.clojure\\.cpcache\\B97F61A0B6E44EFEFE0E773696CC9312.main\"\""]
Error building classpath. C:\Users\Peter (Access is denied)
java.io.FileNotFoundException: C:\Users\Peter (Access is denied)
        at java.io.FileOutputStream.open0(Native Method)

pez 2021-04-15T20:01:58.237700Z

And from the project directory:

PS C:\Users\Peter Strömberg\win-proj\deps.clj&gt; java -jar C:\Users\Public\deps.clj-0.0.13-standalone.jar
["C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe" "-Dclojure.basis=.cpcache\\1B6891D24236BC1B9DA7E4ED8F979305.basis" "-Dclojure.libfile=.cpcache\\1B6891D24236BC1B9DA7E4ED8F979305.libs" "-classpath" "src;resources;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\clojure\\1.10.3\\clojure-1.10.3.jar;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\core.specs.alpha\\0.2.56\\core.specs.alpha-0.2.56.jar;C:\\Users\\Peter Str÷mberg\\.m2\\repository\\org\\clojure\\spec.alpha\\0.2.194\\spec.alpha-0.2.194.jar" "clojure.main"]
Clojure 1.10.3
user=&gt;