I tried to use lein-bin on Windows (creating a .bat file), and encountered a bug:
The preamble tries to launch java -jar %1 "%~f0" %*
Using java -jar %1 causes errors because %1 is not the batch(jar) file. Example:
C:\path>runme.bat hello world
Error: Unable to access jarfile hello
The error happens because java -jar %1 expands to java -jar "hello", and "hello" is not the batch(jar) file.
What should happen: the argument to -jar should be "%~f0" because %0 is the name of the batch file itself.
I tried to use lein-bin on Windows (creating a .bat file), and encountered a bug:
The preamble tries to launch
java -jar %1 "%~f0" %*Using
java -jar %1causes errors because%1is not the batch(jar) file. Example:The error happens because
java -jar %1expands tojava -jar "hello", and "hello" is not the batch(jar) file.What should happen: the argument to
-jarshould be"%~f0"because%0is the name of the batch file itself.