I'm pretty sure that you need to either name each class you want to import inside your :import form or you need to import the package and then each use of the classes in that package need to be manually resolved (e.g. org.eclipse.jface/IDocument). Though I never have been able to use the ns macro correctly the first time, so perhaps there is a way I haven't found.
On Sep 3, 5:31 pm, Gorsal <s...@tewebs.com> wrote: > Hello! I was just wandering if it was possible to import all from a > java package . For example, in java i can do > > import org.eclipse.jface.text.*; > > And i can use IDocument, which is contained under > org.eclipse.jface.text.IDocument; > In clojure, I try > > (ns ParenMatcher > (:gen-class > :implements [ICharacterPairMatcher] > :state state > :init init) > (:use [genutils]) > (:import > [org.eclipse.jface] > [org.eclipse.swt] > [org.eclipse.jface.text] > [org.eclipse.swt.widgets])) > > But, whenever i try to use an IDocument it throws an error like > java.lang.Exception: No such namespace: IDocument (ParenMatcher.clj: > 14) > > Help??? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---