哈工大信息检索研究室论坛's Archiver

mumaomao 发表于 2008-7-9 17:21

用java的时候遇到的一个问题,急!

我用论坛里说的方法创建dll之后,运行java程序,出现下面的错误,不知道是哪里出错了,希望大家帮帮忙~(注意红色部分,应该是多了一个斜杠才找不到文件的,但是不知道什么问题)
can't open the file ../ltp_data[color=red]/[/color]irlas_data[color=red]//[/color]irlas.ini
load IRLAS Resource error!
Exception in thread "main" org.jdom.IllegalDataException: The data "null" is not legal for a JDOM attribute: A null is not a legal XML value.
at org.jdom.Attribute.setValue(Attribute.java:491)
at org.jdom.Attribute.<init>(Attribute.java:228)
at org.jdom.Attribute.<init>(Attribute.java:251)
at org.jdom.Element.setAttribute(Element.java:1128)
at hit_irlab.jni.DependencyTree.saveToXml(DependencyTree.java:117)
at hit_irlab.jni.DependencyTree.usage(DependencyTree.java:146)
at hit_irlab.jni.DependencyTree.main(DependencyTree.java:154)

mumaomao 发表于 2008-7-9 18:15

问题已经解决,将ltp_all_modules.conf文件中的“LTP_dataFolder=../ltp_data/”改成“LTP_dataFolder=./ltp_data/”,谢谢帮我解决这个问题的xiaowen大侠^^

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.