Rob Wolfe wrote:
On 15 Lut, 20:50, Brian Wolf <brw...@gmail.com> wrote:
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 fromhttp://repo.technomancy.us/
2. clojure.jar fromhttp://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


You need to set only LEIN_JAR and CLOJURE_JAR
CLASSPATH will be created by Leiningen.
On your CLASSPATH there are two clojure jars:
1. clojure-1.0.0.jar  (does it exist?)
2. clojure.jar

You should use only one clojure jar, which will be pointed
by CLOJURE_JAR variable.

Try to use more up-to-date versions:
Clojure: 1.1.0
Leinigen: 1.0.1

HTH,
Rob


OK, I made those suggested changes, ie

Clojure: 1.1.0
Leinigen: 1.0.1

took out all clojure related env variables except:

c:\clojure\clojure-1.1.0.jar
C:\clojure\lein.d\leiningen-1.0.1.jar

seems unable to find the project.clj in the jar file

I listed leiningen-1.0.1.jar and it seems project.clj is not under leiningen:
(is that where it belongs?)

258 Thu Dec 10 22:52:18 PST 2009 leiningen/version.clj
  673 Thu Dec 10 22:52:18 PST 2009 project.clj


C:\clojure>lein.bat
Exception in thread "main" java.io.FileNotFoundException: project.clj (The syste
m cannot find the file specified) (NO_SOURCE_FILE:0)
       at clojure.lang.Compiler.eval(Compiler.java:4658)
       at clojure.core$eval__5236.invoke(core.clj:2017)
       at clojure.main$eval_opt__7411.invoke(main.clj:227)
       at clojure.main$initialize__7418.invoke(main.clj:246)
       at clojure.main$null_opt__7446.invoke(main.clj:271)
       at clojure.main$main__7466.doInvoke(main.clj:346)
       at clojure.lang.RestFn.invoke(RestFn.java:426)
       at clojure.lang.Var.invoke(Var.java:363)
       at clojure.lang.AFn.applyToHelper(AFn.java:175)
       at clojure.lang.Var.applyTo(Var.java:476)
       at clojure.main.main(main.java:37)
Caused by: java.io.FileNotFoundException: project.clj (The system cannot find th
e file specified)
       at java.io.FileInputStream.open(Native Method)
       at java.io.FileInputStream.<init>(FileInputStream.java:106)
       at java.io.FileInputStream.<init>(FileInputStream.java:66)
       at clojure.lang.Compiler.loadFile(Compiler.java:4936)
       at clojure.lang.RT$4.invoke(RT.java:277)
       at leiningen.core$read_project__31.invoke(core.clj:39)
       at leiningen.core$read_project__31.invoke(core.clj:41)
       at leiningen.core$_main__43.doInvoke(core.clj:67)
       at clojure.lang.RestFn.invoke(RestFn.java:413)
       at user$eval__52.invoke(NO_SOURCE_FILE:1)
       at clojure.lang.Compiler.eval(Compiler.java:4642)
       ... 10 more

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