On Sat, Jun 25, 2011 at 12:07 PM, Meikel Brandmeyer <m...@kotka.de> wrote:

> Hi,
>
> Am 25.06.2011 um 18:35 schrieb Gregg Reynolds:
>
> > This is using the standard clojure-test stuff.  I've tried every way I
> can think of to get Author into the namespace with no luck.  Since the
> defentity statement occurs in the myapp.core namespace I don't see why :use
> ing that isn't good enough.  Any hints?
>
> You have to use a combination of require and import.
>
> (ns myapp.test-core
>  (:require myapp.core)
>  (:import myapp.core.Author))
>
> Thanks, but I'm afraid that doesn't work.  I can execute the ns function
but still cannot reference Author.  In other words,

(ns gae-lex.test.dataServiceTests
  (:use [gae-lex.core])
  (:import (gae-lex.core.Author))
...)

works just fine (although (:import (gae-lex.core Author) fails).  But when I
try to use Author, executing C-c C-, on

      (let [will (Author. "Shakespeare, William" nil)]
         |

the result is the same:  Unable to resolve classname.

I hope somebody can explain this.  I would love to be able to use a lisp
dialect on the JVM, but to be honest my experience so far with Clojure (esp.
configuration and tools) has been pretty close to a nightmare.  I've had to
spend so much time figuring out why things don't work in so many different
places that I can't any real work done.  I'm at the point now where I have
to make a decision about whether to continue with clojure or switch to
something else.  Then again, my experience is that almost anything involving
Java eventually turns into a nightmare.

Thanks,

Gregg

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