Hi-
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:
http://www.velocityreviews.com/forums/t142693-java-jar-ignore-the-classpath-command-line-argument.html
-Marshall
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