Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows preamble should not use %1 #24

Open
jacobmorzinski opened this issue Dec 13, 2015 · 0 comments
Open

Windows preamble should not use %1 #24

jacobmorzinski opened this issue Dec 13, 2015 · 0 comments

Comments

@jacobmorzinski
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant