以文本方式查看主题 - 计算机科学论坛 (http://bbs.xml.org.cn/index.asp) -- 『 Semantic Web(语义Web)/描述逻辑/本体 』 (http://bbs.xml.org.cn/list.asp?boardid=2) ---- eclipse中使用jena的问题 (http://bbs.xml.org.cn/dispbbs.asp?boardid=2&rootid=&id=22017) |
-- 作者:tomdyq -- 发布时间:9/8/2005 9:14:00 AM -- eclipse中使用jena的问题 我在eclipse环境下使用jena调试文档程序,运行到tutorial05的时候,提示 Exception in thread "main" java.lang.IllegalArgumentException: File: vc-db-1.rdf not found at jena.examples.rdf.Tutorial05.main(Tutorial05.java:35) 我已经在eclipse中导入jena\lib的库了,是不是用eclipse还要在系统变量的classpath中设置jena的库文件,那样每次都设置一次,不是太麻烦了吗? |
-- 作者:tomdyq -- 发布时间:9/8/2005 9:16:00 AM -- 还有就是在程序中有这样一段注释: NOTE that the file is loaded from the class-path and so requires that the data-directory, as well as the directory containing the compiled class, must be added to the class-path when running this and subsequent examples. 我已经把vc-db-1.rdf 放到.class文件一起的目录下了,但还是不行。请求帮助 |
-- 作者:jiexincao -- 发布时间:9/8/2005 10:53:00 PM -- 文件路径应该在classpath中找,你jena\lib下面有你要的那个文件吗?没有的话就应该包含进来。 如果文件就在你的项目目录下,只要在classpath加一个"."就行了,表示当前路径。 这个问题是java的问题,与jena没有什么关系。建议看一下java的入门的书,关于class和classpath的设置,那种书里应该有介绍。 |
-- 作者:jpz6311whu -- 发布时间:9/10/2005 11:11:00 PM -- file: vc-db-1.rdf not found 是文件没找到,classpath没错,不然怎么运行到 jena.examples.rdf.Tutorial05.main |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
46.875ms |