Failed to run Compojure on WinXP

0 views
Skip to first unread message

AngelP

unread,
Jul 8, 2009, 6:41:18 AM7/8/09
to Compojure
Hi,
I am trying to install compojure as it is described in
http://en.wikibooks.org/wiki/Compojure/Getting_Started.
It works fine on ubuntu, but I could not get it working on WinXP
I get compojure, from git
did ant clean, ant deps, ant.
Created described bat file, it gives me to the repl, but when I try to
use compojure, I get an error

c:>java -cp "compojure.jar;deps/clojure-contrib.jar;deps/
clojure.jar;deps/commons-codec-1.3.jar;deps/commons-
fileupload-1.2.1.jar;deps/commons-io-1.4.jar;deps/grizzly-http-
servlet-1.9.10.jar;deps/grizzly-http-webserver-1.9.10.jar;deps/
jetty-6.1.15.jar;deps/jetty-util-6.1.15.jar;deps/servlet-
api-2.5-20081211.jar" clojure.lang.Repl
Clojure 1.0.0-
user=> (use 'compojure)
java.lang.NoClassDefFoundError: clojure/lang/RT (NO_SOURCE_FILE:0)

It works, if I copy compojure.jar to deps folder and invoke java -
Djava.ext.dirs clojure.lang.Repl
I cannot use -Djava.ext.dirs, because I have problems when working
with ssl.

That is why I would like to start compojure with -cp.

May you give me a clue what I am doing wrong?

Regards, AngelP

Nicolas Buduroi

unread,
Jul 8, 2009, 9:37:17 AM7/8/09
to Compojure
Hi, welcome to the group. I don't think this issue is directly related
to Compojure. Can you try to load another library, say (require
'clojure.contrib.math), to see if you get the same error. I've done a
little search on the Clojure group and found this post that maybe
could help you: http://groups.google.com/group/clojure/browse_thread/thread/fafe52de18be00ae/7fbd604d07e36628

That's all I can do for now, didn't read the previous post fully so I
don't really understand the problem yet. I'll look again tonight if
you still having this bug.

- budu

On Jul 8, 6:41 am, AngelP <angelpo...@gmail.com> wrote:
> Hi,
> I am trying to install compojure as it is described inhttp://en.wikibooks.org/wiki/Compojure/Getting_Started.

Daniel Renfer

unread,
Jul 8, 2009, 10:19:43 AM7/8/09
to comp...@googlegroups.com
I think this may be due to the fact that Windows uses a different
separator than linux. I don't have a windows box to test this on, but
try replacing ; with :

Shantanu Kumar

unread,
Jul 8, 2009, 10:30:48 AM7/8/09
to comp...@googlegroups.com
Hi,

I can see you have entered the following:

(use 'compojure)

Did you actually mean to enter as follows (notice the colon before "use")?

(:use 'compojure)

Regards,
Shantanu

Nicolas Buduroi

unread,
Jul 8, 2009, 10:38:12 AM7/8/09
to Compojure
> I think this may be due to the fact that Windows uses a different
> separator than linux. I don't have a windows box to test this on, but
> try replacing ; with :

You've got it backward, AngelP got it right. Under Windows you can't
use ":" because the same character is used in drive letters.

> Did you actually mean to enter as follows (notice the colon before "use")?
>
> (:use 'compojure)

Hum, isn't that syntax only to be used inside the "ns" macro? After
trying it, this doesn't throw anything and also doesn't load anything.

- budu

AngelP

unread,
Jul 8, 2009, 4:31:32 PM7/8/09
to Compojure
Thanks for the responses.

I succeed to (require 'clojure.contrib.math). Tried to use what is
proposed in the suggested post, but with no success.

Regards, AngelP

On 8 Юли, 16:37, Nicolas Buduroi <nbudu...@gmail.com> wrote:
> Hi, welcome to the group. I don't think this issue is directly related
> to Compojure. Can you try to load another library, say (require
> 'clojure.contrib.math), to see if you get the same error. I've done a
> little search on the Clojure group and found this post that maybe
> could help you:http://groups.google.com/group/clojure/browse_thread/thread/fafe52de1...

James Reeves

unread,
Jul 8, 2009, 5:29:50 PM7/8/09
to Compojure
On Jul 8, 9:31 pm, AngelP <angelpo...@gmail.com> wrote:
> Thanks for the responses.
>
> I succeed to (require 'clojure.contrib.math). Tried to use what is
> proposed in the suggested post, but with no success.

I'd suggest incrementally increasing your classpath, until you
discover the cause of the problem. For instance, you might start with:

java -cp "deps/clojure.jar;deps/clojure-contrib.jar" clojure.lang.Repl

Try (require 'clojure.contrib.math), and then if that works, add some
more jars until you get the full class path.

- James
Reply all
Reply to author
Forward
0 new messages