Importing a class with an ambiguous name

13 views
Skip to first unread message

igorrumiha

unread,
Feb 11, 2010, 7:13:49 AM2/11/10
to Clojure
Hi,

I'm exploring the jexcelapi library (http://
jexcelapi.sourceforge.net), and one of the classes there is
jxl.write.Number. So, when I do:

=> (import 'jxl.write.Number)

I get:

Number already refers to: class java.lang.Number in namespace: user
[Thrown class java.lang.IllegalStateException]

I tried excluding the Number symbol from the current namespace but
that doesn't work (or I'm doing it wrong). So, how do I import classes
with names that already exist in my namespace?

p.s.
As far as writing Excel spreadsheets is concerned, I'm aware of the
Apache POI project, this one is the next on my list...

Thanks,

Igor Rumiha

Joop Kiefte

unread,
Feb 11, 2010, 7:24:22 AM2/11/10
to clo...@googlegroups.com
If I remember correctly it will work just fine if you don't import it and you refer to it like (jxl.write.Number... 

Please correct me if I'm wrong.

Joop Kiefte

2010/2/11 igorrumiha <igorr...@gmail.com>
--
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



--
Communication is essential. So we need decent tools when communication is lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

igorrumiha

unread,
Feb 11, 2010, 8:43:31 AM2/11/10
to Clojure
On Feb 11, 1:24 pm, Joop Kiefte <iko...@gmail.com> wrote:
> If I remember correctly it will work just fine if you don't import it and
> you refer to it like (jxl.write.Number...
>
> Please correct me if I'm wrong.


You are correct! Thanks!

--
Igor Rumiha

Reply all
Reply to author
Forward
0 new messages