Rob Wolfe wrote:
On 15 Lut, 07:42, Brian Wolf <brw...@gmail.com> wrote:
Hi,

I am trying to run (http://bit.ly/82zo95<http://bit.ly/82zo95> ) powershell script for leiningen install under windows, but it says it
can't find file, which file it doesn't say. I was wondering  what
dependencies leiningen  has? Do I need maven pre- installed (I don't see
anything mentioned on the website)

I don't know this powershell script, but you can use this batch file:
http://github.com/technomancy/leiningen/blob/master/bin/lein.bat

There is no "self-install" functionality in this script so far,
but you can download needed jars easily:
1. leiningen-1.0.1-standalone.jar from http://repo.technomancy.us/
2. clojure.jar from http://build.clojure.org/releases/org/clojure/clojure/1.1.0/

You need only these two jars in order to run Leiningen.
After downloading these jars you need to copy them on paths
pointed by %CLOJURE_JAR% and %LEIN_JAR% variables
respectively.

HTH,
Rob

Well, I set the env variables and ran the script,  got an error.

These are my env variables:

CLASSPATH=c:\clojure;.;c:\clojure\clojure-1.0.0.jar;c:\clojure\clojure.jar


CLOJURE_HOME=c:\clojure
CLOJURE_JAR=c:\clojure\clojure.jar


LEIN_JAR=C:\clojure\lein.d\leiningen-0.5.0.jar
LEIN_VERSION=1.1.0-SNAPSHOT

JAVA_HOME=C:\jdk1.6.0_16

-------------------------------------
directory contents:

C:\clojure

clojure.jar


C:\clojure\lein.d

leiningen-0.5.0.jar

==================================================================

the error:


C:\clojure>lein.bat
Exception in thread "main" java.lang.ExceptionInInitializerError
       at clojure.lang.Namespace.<init>(Namespace.java:32)
       at clojure.lang.Namespace.findOrCreate(Namespace.java:117)
       at clojure.main.<clinit>(main.java:21)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
       at clojure.lang.RT.<clinit>(RT.java:291)
       ... 3 more
Caused by: java.lang.NullPointerException
       at clojure.lang.RT.load(RT.java:373)
       at clojure.lang.RT.load(RT.java:367)
       at clojure.lang.RT.doInit(RT.java:402)
       at clojure.lang.RT.<clinit>(RT.java:288)
       ... 3 more
Could not find the main class: clojure.main.  Program will exit.




--
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