Zoltán Szászi wrote:
> Hi!
> 
> Concrete situation: I have an UIMA Annotator; developed by me and works fine
> with UIMA.But if I like running this annotator from a third party software
> (this program gets only the descriptor xml file and an input directory, self
> the annotator has own, "special" output), always I get "annotator class not
> found" exception. I tried to set UIMA_CLASSPATH, CLASSPATH, ClassLoader, but
> cannot solve the problem. I get the error at calling
> "UIMAFramework.produceAnalysisEngine" method.
> How can I do this process?

Your annotator needs to be on the classpath of the application
where you're loading the annotator.

Alternatively, you can package your annotator as a pear file.
The pear runtime mechanism takes care of the class loading
for you, which can be a big bonus.  See
http://incubator.apache.org/uima/doc-uima-pears.html
for an introduction to pear files.

HTH,
Thilo

> I need simplest solution to running an annotator, but be universal.. not
> needed other features of UIMA yet.
> Any help are welcomed.
> 
> Best regards,
> Zoltan
> 

Reply via email to