Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top