以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 Web Services & Semantic Web Services 』  (http://bbs.xml.org.cn/list.asp?boardid=10)
----  [求助]:怎么把protege的源码在jbuilder中运行起来呢?感激不尽......  (http://bbs.xml.org.cn/dispbbs.asp?boardid=10&rootid=&id=30436)


--  作者:renx
--  发布时间:4/12/2006 4:14:00 PM

--  [求助]:怎么把protege的源码在jbuilder中运行起来呢?感激不尽......
我用的是protege3.1源码、jbuilder2006工具。
把源码里面的\lib\*.jar也加进了工程,但运行老是出错。
希望高手指点,感激不尽啊,期待中..................................................................
--  作者:MerryZhang
--  发布时间:4/20/2006 3:07:00 PM

--  
出什么样的错误呢?
--  作者:renx
--  发布时间:4/20/2006 4:11:00 PM

--  
我是这样做的:

首先,新建工程,然后把lib文件夹里的junit.jar,looks.jar,unicode_panel.jar三个包加进工程

程序入口为:edu.stanford.smi.protege.Application
运行会出错:

"AbstractFormatter.java": reference to Formatter is ambiguous, both class java.util.logging.Formatter in java.util.logging and class java.util.Formatter in java.util match at line 38, column 49


由于程序是从java.util.logging继承,我在AbstractFormatter.java文件里显示继承,
加入import java.util.logging.Formatter

而后运行错误为
"AbstractFormatter.java": illegal character: \26 at line 117, column 1
"AbstractFormatter.java": 'class' or 'interface' expected at line 118, column 1

再次运行错误更多了:
"AbstractFormatter.java": illegal character: \26 at line 117, column 1
"AbstractFormatter.java": 'class' or 'interface' expected at line 118, column 1
"JournalFormater.java": cannot find symbol; symbol: class AbstractFormatter at line 37, column 38
"JournalFormater.java": cannot find symbol; symbol  : method getDateString(), location: class edu.stanford.smi.protege.model.framestore.JournalFormater at line 51, column 23
"JournalFormater.java": cannot find symbol; symbol  : method toString(java.lang.Object), location: class edu.stanford.smi.protege.model.framestore.JournalFormater at line 64, column 27
"JournalFormater.java": cannot find symbol; symbol  : method toString(java.lang.Object), location: class edu.stanford.smi.protege.model.framestore.JournalFormater at line 68, column 23
"JournalFormater.java": cannot find symbol; symbol  : method getLineSeparator(), location: class edu.stanford.smi.protege.model.framestore.JournalFormater at line 69, column 23
"FileFormatter.java": cannot find symbol; symbol: class AbstractFormatter at line 33, column 36
"FileFormatter.java": format(java.util.logging.LogRecord) in edu.stanford.smi.protege.util.FileFormatter cannot be applied to (java.util.logging.LogRecord,<nulltype>,boolean,boolean) at line 36, column 16

应该不是程序有错吧


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms