Exception in thread "main" java.lang.Error: Unresolved compilation problems 解决方案

从http://ictclas.org/Down_OpenSrc.asp 下了个中科院分词软件java开发版程序ictclas4j,在eclipse中写了一个类测试下结果,出现以下错误: 

Exception in thread "main" java.lang.Error: Unresolved compilation problems:

The import org.apache cannot be resolved
 ReflectionToStringBuilder cannot be resolved

 

 找了很久,终于找到原因了,下了个commons jar包, 然后按如下步骤:在Package Explore内 对应的工程上 单击右键;弹出右键菜单上单击“Build Path->Configure Build Path”,在弹出的对话框上 单击“Libararies->add External JARS” 选择上你的jar包所在位置就可以了

 

你可能感兴趣的:(文本分类)