W3CHINA Blog首页    管理页面    写新日志    退出

The Neurotic Fishbowl

[毕业设计]学点jena
cathy 发表于 2005/1/30 14:45:26

今天去下载了jena-2.2-beta-1 本来我用的是jena2.0,觉得还是用新的比较好吧,有可能功能会多一点的说500)this.width=500'> 我决定先从jcreator开始做实验,虽说最后我还是比较想用jbuilder做 恩,又配置了一遍环境,已经比较熟的说500)this.width=500'> 刚看了 jena简介(上)和(下),看的懂的不多,特别是讲到数据库和推理 哎,当年数据库没学好呢,实验自己也没做500)this.width=500'> 文中介绍了如下的读入方法: InputStream in = this.getClass().getClassLoader().getResourceAsStream(filename); model.read(in,null); 不过我用时会有点问题的,我本来用的是: InputStream in = Tutorial06.class.getClassLoader().getResourceAsStream(inputFileName);model.read(new InputStreamReader(in), ""); 上面这个是能用的,后来我把Tutorial06.class改成了this.getClass()却不行,会给出如下错误 non-static variable this cannot be referenced from a static contextInputStream in = this.getClassLoader().getResourceAsStream(inputFileName);                           ^ 不是很明白为什么, 不过也已经习惯啦,编程嘛,人想的和机器想的还不有不同的说500)this.width=500'> 不过这样写到是可以的: InputStream in = Tutorial06.class.getClassLoader().getResourceAsStream(inputFileName);model.read(in,""); 和以前用的区别在第二句,还是简单了点

阅读全文(1862) | 回复(0) | 编辑 | 精华

 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)

 
 



The Neurotic Fishbowl

.: 公告


Bloginess

«July 2025»
12345
6789101112
13141516171819
20212223242526
2728293031

.: 我的分类(专题)

首页(86)
道听途说(2)
毕业设计(4)
日记啦(39)
口译(1)


In the Bowl

.: 最新日志

嘿嘿,总算到家了
最近有学自行车
有空就来写点啦
心情不好
爱情不需要别人的相信,只需要你自己的确定
又被留在松江了~~
好就没来了,差不多都弄完了
哎,有要重写了
现在在松江呢
翻译总算弄完了


.: 最新回复

回复:短篇日记啦
回复:短篇日记啦
回复:短篇日记啦
回复:刚看了艺术人生,讲的是扬澜
回复:短篇日记啦
回复:还是短篇日记啦
回复:还是短篇日记啦
回复:还是短篇日记啦
回复:还是短篇日记啦
回复:还是短篇日记啦


The Fishkeeper
blog名称:
日志总数:86
评论数量:357
留言数量:5
访问次数:432553
建立时间:2005年1月5日



Text Me

.: 留言板

签写新留言

放过你啦~~
知道啦~~
你的google广告,
欢迎留言哦


Other Fish in the Sea

.: 链接


http://www.blog.edu.cn/user1/19136/archives/2005/143494.shtml

http://www.flashinn.com/gb/sunqi816

http://download.enet.com.cn/speed/toftp.php?fname=080622004010601

http://blog.csdn.net/inber/archive/2005/03/02/307272.aspx

http://blog.itpub.net/archives/1025/20041205

http://www.worldlingo.com/wl/MSTranslate/UP26384/P2/T1/l/zh/microsoft/computer_translation.html

 




站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.023 second(s), page refreshed 144781800 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号