Created
March 29, 2017 18:19
-
-
Save camsaul/c982019fd915510677236cd4b720a583 to your computer and use it in GitHub Desktop.
Run lein with different JVM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home lein run |
@jprudent I've been using Jabba (https://github.com/shyiko/jabba) for this stuff now
Is it possible to set JVM version per project, for example via project.clj
?
Edit: I discovered how to do this with jEnv, using jenv local <jvm-version>
within my project directory. I suppose that does the trick! Although it would still be useful to do this in project.clj
, add to source control, etc.
Is it possible to set JVM version per project, for example via
project.clj
?
you can, add
:java-cmd "/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/bin/java"
to your project.clj, or the path of whatever other java binary you are using
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note : I couldn't use JAVA_HOME, had to use JAVA_CMD