Some time ago, there were two versions of JDK installed on my PC (1.7.0_09 and 1.7.0_51). Then I uninstalled the former one. Now, when I try to run lein run (even with a dummy project) I get the following message:
java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.7.0_09\bin\java.exe" (in directory "<...>"): CreateProcess error=2, The system cannot find the file specified
What can I do to make lein use the right JDK? The JAVA_HOME and JDK_HOME variables are not set.
Check the following settings:
java -version show the right version ?JAVA_HOME,JDK_HOME,JAVA_CMD or LEIN_JAVA_CMD point to the wrong JDK ?:java-cmd setting forcing a specific JVM ?~/.lein/profiles.clj have a :java-cmd setting ?If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With