uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marshall Schor <...@schor.com>
Subject Re: classpath issue
Date Wed, 06 Aug 2008 21:33:01 GMT

This is a common error.  When you use -jar as an argument to java, the 
-classpath is ignored.  Just google using classpath and ignored and 
you'll find others who ran up against this.

Here's one link:



Ahmed Abdeen Hamed wrote:
> Hello list,I exported a UIMA-based application to a jar and and it was
> exported correctly. I am trying to run my application using the jar file
> from the command line as I am also making sure that the uima jars are
> specified. However, I am getting the following error :
> ahmed-abdeen-hameds-macbook-pro:deployment ahmedabdeenhamed$ java -classpath
> uima-core.jar:uima-cpe.jar -jar MyTestJar.jar
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/uima/cas/CASException
> at edu.mbl.library.tf.application.TFinderApp.main(TFinderApp.java:39)
> ahmed-abdeen-hameds-macbook-pro:deployment ahmedabdeenhamed$
> I am using Eclipse to export to a jar file on a MAX OS.
> I would appreciate any insights!
> Best wishes,
> -Ahmed

View raw message