首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

lucene基础有关问题

2012-01-26 
lucene基础问题RAMDirectory ramnew RAMDirectory()IndexWriter indexWriter new IndexWriter(ram,new

lucene基础问题
RAMDirectory ram=new RAMDirectory();
IndexWriter indexWriter = new IndexWriter(ram,new StandardAnalyzer(),true); 
错误为:Default constructor cannot handle exception type LockObtainFailedException 
 thrown by implicit super constructor. Must define an explicit constructor
和书本上代码一样,怎么会有错误?

[解决办法]
需要处理 LockObtainFailedException 这个异常

热点排行