Hi John,

Could this maybe just be a dependencies problem?  It seems you're trying to 
use classes from two different libraries:

com.googlecode.libphonenumber/libphonenumber
com.googlecode.libphonenumber/carrier

If checking the dependencies for your build doesn't solve it, could you 
explain a little further what build system you are using?

steven

On Sunday, November 30, 2014 2:49:40 PM UTC-5, John Bohn wrote:
>
> Hi all,
> I'm trying to import a class from a non-standard location.. Specifically, 
> I'm trying to import PhoneNumberToCarrierMapper from libphonenumber and am 
> receiving the following error:
>
> Exception in thread "main" java.lang.ClassNotFoundException: com.google.
> i18n.phonenumbers.PhoneNumberToCarrierMapper, compiling:(phonelib/shared.
> clj:1:1)
>
>
> https://github.com/jjbohn/libphonenumber/blob/master/java/carrier/src/com/google/i18n/phonenumbers/PhoneNumberToCarrierMapper.java
>
> (ns phonelib.shared
>   (:require [clojure.string :refer [lower-case]])
>   (:import  [com.google.i18n.phonenumbers PhoneNumberUtil 
>                                           
> PhoneNumberUtil$PhoneNumberFormat
>                                           PhoneNumberToCarrierMapper]))
>
> My assumption is the problem has to do with how the directories are 
> structured in this library (
> https://github.com/jjbohn/libphonenumber/tree/master/java 
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fjjbohn%2Flibphonenumber%2Ftree%2Fmaster%2Fjava&sa=D&sntz=1&usg=AFQjCNEwMt2Z5HShgvx-xVqSdCC3EwjrmQ>
> ). 
>
> Anyone run into this before and know of a workaround? 
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to