There seems to be an issue, which I have spent several days combating. The 
issue is simple, you can not download any dependencies, and therefore you 
can not run Lein at all.

The solution is very simple, and it is a well knows solution. In lein.bat, 
at the very end of the file there needs to be a flag " 
-Djava.net.preferIPv4Stack=true ^", and so the final bat file looks like 
this:

%JAVA_CMD% -client %LEIN_JVM_OPTS% ^
 -Dleiningen.original.pwd="%ORIGINAL_PWD%" ^
 -Djava.net.preferIPv4Stack=true ^
 -cp "%CLASSPATH%" clojure.main -m leiningen.core.main %*

:EOF

Even more funny is the fact I knew this problem already existed in Eclipse, 
but solved it quickly, and yet taken me many days over the last couple 
weeks to solve it. If this could get added to lein.bat,or simply documented 
in the FAQ under "Running x64 bit JVM under Windows" it would help a lot of 
other people.

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to