[英]UIMA Example in Eclipse not working
I'm new to Eclipse and UIMA. 我是Eclipse和UIMA的新手。 I'm trying to run UIMA examples, in Eclipse Luna -j2ee platform.
我正在尝试在Eclipse Luna -j2ee平台上运行UIMA示例。 I can run cvd.sh from terminal in examples.
我可以在示例中从终端运行cvd.sh.
When I try to run examples from "Run Configurations", I encounter error as below : 当我尝试从“运行配置”运行示例时,我遇到如下错误:
Error: Could not find or load main class org.apache.uima.tools.cvd.CVD
<terminated>UIMA CAS Visual Debugger [Java Application]
<terminated, exit value: 1>/usr/lib/jvm/java-7-openjdk-i386/bin/java (22-May-2015 5:52:13 am)
I tried to run from Run Configurations, and I see similar error for other examples also, like - 我试图从运行配置运行,我也看到其他示例的类似错误,如 -
Error: Could not find or load main class org.apache.uima.tools.AnnotationViewerMain
<terminated>UIMA Annotation Viewer [Java Application]
<terminated, exit value: 1>/usr/lib/jvm/java-7-openjdk-i386/bin/java (22-May-2015 6:33:43 am)
What could be the problem? 可能是什么问题呢?
I feel it could be some path related issue, as examples (at least some of them) in terminal apache-uima/bin are working... 我觉得它可能是一些路径相关的问题,因为终端apache-uima / bin中的示例(至少其中一些)正在工作......
I'm using debian , if that helps. 我正在使用debian ,如果这有帮助的话。
My guess is that you have forgotten to set up the UIMA_HOME in Eclipse. 我的猜测是你忘了在Eclipse中设置UIMA_HOME。 This is from the documentation of UIMA 2.7.0 - Setting up Eclipse to view Example Code :
这来自UIMA 2.7.0的文档- 设置Eclipse以查看示例代码 :
Disclosure: I am on the Apache UIMA project 披露:我在Apache UIMA项目上
Creating a UIMA user library in Eclipse 在Eclipse中创建UIMA用户库
Now make sure the UIMA user library is in the run configuration classpath and you should be able to start a UIMA example from Eclipse. 现在确保UIMA用户库在运行配置类路径中,您应该能够从Eclipse启动UIMA示例。
Seems you've missed this part of installation: 3.3 http://uima.apache.org/d/uimaj-2.7.0/overview_and_setup.html#ugr.ovv.eclipse_setup.adding_source 好像你错过了这部分安装:3.3 http://uima.apache.org/d/uimaj-2.7.0/overview_and_setup.html#ugr.ovv.eclipse_setup.adding_source
After that, I've fixed it by adding the all UIMA jars into classpath. 之后,我通过将所有UIMA jar添加到classpath中来修复它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.