I'm very unskilled when it comes to the command prompt, so I tried to download Lein through the Windows installer that's on the website. It almost installs, but then I get this error at the very end of the install:

"Failed to update file: C:\Users\.lein\profiles.clj. Ensure that :java-cmd is set to: 'C:\Program Files\Java\jdk1.7.0_25\bin\java.exe' in your :user profile. Result: Ran; Code: 1".

What could cause this to happen? How can I fix it?

有帮助吗?

解决方案

I guess you only have the JRE installed instead of the JDK. Open a command and enter "javac". Most probably the OS cannot find it. If so, download one here: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Afterwards add the JDK_INSTALL\bin location to your windows path. This should fix it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top