I call the twitter4j library using Clojure as follows:
(def twitter (. (TwitterFactory.) getInstance))
This works great when I call it a script. But when I use gen-class, I get:
java.lang.IllegalArgumentException: Can't call public method of non-public class: public java.lang.Object twitter4j.TwitterFactoryBase.getInstance()
Is there a workaround for this?
source share