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.
2019-11-28T16:15:44.061300Z

i am getting "The command line is too long" for a project i'm testing on windows it looks like the classpath is passed on the command line as-is for the final invocation of the jvm in ClojureTools.psm1 based on the content of the .cp file in .cpcache, it looks like the classpath in question exceeds 8192 characters i understand there are some "classical" suggestions for this type of situation -- if it turns out ClojureTools.psm1 is affected, has any thought been given to whether this might be coped with by ClojureTools?

littleli 2019-11-28T17:55:00.061400Z

I'm afraid this is somewhat fundamental limitation of the windows platform. I've seen somewhere that classpath can be read from a prepared file, where there should be no such draconian size limit. Another thing that could help is having a module a jigsaw module, but don't know if that's possible. Loading from location using wildcards also can shrink the classpath little bit. But no general solution that I know of.

2019-11-28T17:59:41.061600Z

i have done a bit of research (@-files, pathing jar, wildcard classpath, env var) and have a couple of additional ideas i have not seen mentioned involving symlinks (which might be acceptable for w10 in dev mode). had not heard of the jigsaw module idea - would that require java 9 and above?

2019-11-28T20:37:19.061900Z

for reference, i've been making notes starting at the following comment: https://github.com/taylorwood/clj.native-image/issues/18#issuecomment-559234753