This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-04
Channels
- # announcements (1)
- # babashka (7)
- # beginners (25)
- # calva (38)
- # cider (2)
- # clerk (54)
- # clojure (21)
- # clojure-austin (1)
- # clojure-europe (11)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-uk (2)
- # clr (16)
- # conjure (2)
- # cursive (15)
- # datalevin (1)
- # datomic (2)
- # emacs (3)
- # fulcro (1)
- # hoplon (14)
- # humbleui (9)
- # hyperfiddle (31)
- # improve-getting-started (12)
- # jobs (7)
- # off-topic (15)
- # reitit (3)
- # releases (1)
- # spacemacs (22)
- # squint (16)
- # tools-deps (8)
- # vim (50)
- # xtdb (33)
has anyone had any success with babashka and caxa on windows when trying to supply a jar
for the classpath? i know this isn't a babashka issue, but an issue with quoting on windows and caxa. I've tried passing different kinds of quotes but i've been unsuccessful so far.
my output looks something like this if I try to invoke the -main fn directly but if I attempt to use -cp
or --classpath
to supply deps.jar
then i get a caxa error because those aren't valid options for caxa.
PS C:\Users\user\Documents\bootstrap-agent> caxa --input . --output foo.exe -- "{{caxa}}/bb.exe" "-m" "bootstrapper.main"
PS C:\Users\user\Documents\bootstrap-agent> .\foo.exe
bootstrapper.main
Babashka v1.3.176 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=>
the error output when trying to supply the deps.jar
PS C:\Users\user\Documents\bootstrap-agent> caxa --input . --output foo.exe -- "{{caxa}}/bb.exe" "-cp" "{{caxa}}/deps.jar" "-m" "bootstrapper.main"
error: unknown option '-cp'
Usage: caxa [options] <command...>
...
output should look like this
PS C:\Users\user\Documents\bootstrap-agent> bb -cp deps.jar -m bootstrapper.main
> Filter...
ā¢ ABC
XYZ
I'm able to get this working with no issue on macos but not for windows. there is one dep and that's lispycloud's gum wrapper library, bblgumInstead of -cp deps.jar -m bootstrapper.main
you could also build an uberjar with all the deps and set bootstrapper.main
as the main method of the uberjar. Then you can invoke it with: bb uber.jar directly