Problem with Leiningen 1.6.1 in Windoes

65 views
Skip to first unread message

Arie van Wingerden

unread,
Jul 20, 2011, 8:02:18 AM7/20/11
to clo...@googlegroups.com
Hi,

the self-install worked ok, and I checked that the jar is present in:
C:\Documents and Settings\Administrator\.lein\self-installs\leiningen-1.6.1-standalone.jar

But the "lein deps" for a project gets stuck:

D:\src\Clojure\test2>lein deps
Exception in thread "main" java.lang.NoClassDefFoundError: Files\Java\jre6\lib\e
xt\QTJava/zip;";;test;src;C:\Documents and Settings\Administrator\/lein\self-ins
talls\leiningen-1/6/1-standalone/jar
Caused by: java.lang.ClassNotFoundException: Files\Java\jre6\lib\ext\QTJava.zip;
";;test;src;C:\Documents and Settings\Administrator\.lein\self-installs\leininge
n-1.6.1-standalone.jar
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: Files\Java\jre6\lib\ext\QTJava.zip;";;test;src;C:
\Documents and Settings\Administrator\.lein\self-installs\leiningen-1.6.1-standa
lone.jar.  Program will exit.

It seems the classpath is not being constructed correctly; instead of dots there are slashes and also a mix of back- and forward slashes.

Before the invocation of lein the classpath is:
CLASSPATH=.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip

Any ideas what is (or what I am doing) wrong?

Thx,
   Arie

Matjaz Gregoric

unread,
Jul 20, 2011, 9:55:50 PM7/20/11
to clo...@googlegroups.com
Could you try using the master version of lein.bat? There have been a couple of patches applied since 1.6.1 that might help with your issue.

You can get the latest version here:
https://raw.github.com/technomancy/leiningen/master/bin/lein.bat

Make sure to change the version number to 1.6.1 before running it. Replace:
set LEIN_VERSION=2.0.0-SNAPSHOT
with
set LEIN_VERSION=1.6.1

Let us know how it went,
Matjaz



--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Arie van Wingerden

unread,
Jul 21, 2011, 10:49:53 AM7/21/11
to clo...@googlegroups.com
Hi Matjaz,

that is what i did in the first place; however, i deleted the 1.6.1  jar (which was present), downloaded the new lein.bat 2.0.0, changed that tot 1.6.1. and now get this:

D:\src\Clojure\test2>lein self-install
Downloading Leiningen now...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (22) The requested URL returned error: 404

Failed to download https://github.com/downloads/technomancy/leiningen/leiningen-
1.6.1-SNAPSHOT-standalone.jar
See README.md for SNAPSHOT build instructions.

Thx so far,
   Arie

2011/7/21 Matjaz Gregoric <gre...@gmail.com>

Matjaz Gregoric

unread,
Jul 21, 2011, 11:38:23 AM7/21/11
to clo...@googlegroups.com
It seems like the version in lein.bat is set to 1.6.1-SNAPSHOT instead of just 1.6.1.
The line in the lein.bat file should say
set LEIN_VERSION=1.6.1
instead of
set LEIN_VERSION=1.6.1-SNAPSHOT

Matjaz

Arie van Wingerden

unread,
Jul 21, 2011, 12:15:22 PM7/21/11
to clo...@googlegroups.com
Ah indeed that was the problem.
Thx, Arie

Phil Hagelberg

unread,
Jul 21, 2011, 12:19:23 PM7/21/11
to clo...@googlegroups.com
On Thu, Jul 21, 2011 at 8:38 AM, Matjaz Gregoric <gre...@gmail.com> wrote:
> It seems like the version in lein.bat is set to 1.6.1-SNAPSHOT instead of
> just 1.6.1.

Would it be helpful to create a 1.6.1-windows tag?

-Phil

Matjaz Gregoric

unread,
Jul 21, 2011, 11:08:23 PM7/21/11
to clo...@googlegroups.com
Would it be helpful to create a 1.6.1-windows tag?

Yes Phil, it would be nice if we could do this.

Matjaz

Phil Hagelberg

unread,
Jul 21, 2011, 11:19:49 PM7/21/11
to clo...@googlegroups.com
Matjaz Gregoric <gre...@gmail.com> writes:

> Would it be helpful to create a 1.6.1-windows tag?
>
>
> Yes Phil, it would be nice if we could do this.

Just pushed a tag.

-Phil

Reply all
Reply to author
Forward
0 new messages