Fork me on GitHub
#tools-deps
<
2022-07-04
>
Benjamin15:07:55

[benj@benj-pc jdbc] 0 $ tree
.
├── aws-java-sdk-core-1.12.23.jar
..... 10 more 
└── redshift-jdbc42-2.1.0.8.jar
I have a dir like this full of jars without a pom. How do I add them all to the classpath?

delaguardo15:07:44

I would generate deps.edn in that repository using babashka with :paths pointing to each jar

Alex Miller (Clojure team)15:07:06

jvm classpath has a special case for * as a wildcard

Benjamin16:07:41

:thumbsup: thanks Alex

Alex Miller (Clojure team)16:07:27

and note that this is not a shell expansion thing - the jvm expects to see "*" as part of a path item

Alex Miller (Clojure team)16:07:49

and not everything you think would work at the shell works in the jvm, it's much more limited

Benjamin16:07:13

"jdbc/*" works like expected