java.lang.ClassNotFoundException: org.apache.lucene.index.memory.MemoryIndex
来源:互联网 发布:微信公众号 python 编辑:程序博客网 时间:2024/06/03 19:00
Lucence 5.3.1 高亮显示时异常:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/index/memory/MemoryIndexat org.apache.lucene.search.highlight.WeightedSpanTermExtractor.getLeafContext(WeightedSpanTermExtractor.java:391)at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extractWeightedTerms(WeightedSpanTermExtractor.java:355)at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(WeightedSpanTermExtractor.java:150)at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(WeightedSpanTermExtractor.java:110)at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.getWeightedSpanTerms(WeightedSpanTermExtractor.java:518)at org.apache.lucene.search.highlight.QueryScorer.initExtractor(QueryScorer.java:219)at org.apache.lucene.search.highlight.QueryScorer.init(QueryScorer.java:187)at org.apache.lucene.search.highlight.Highlighter.getBestTextFragments(Highlighter.java:196)at org.apache.lucene.search.highlight.Highlighter.getBestFragments(Highlighter.java:156)at org.apache.lucene.search.highlight.Highlighter.getBestFragment(Highlighter.java:102)at com.accord.utils.Searcher.search(Searcher.java:50)at com.accord.utils.Searcher.main(Searcher.java:60)Caused by: java.lang.ClassNotFoundException: org.apache.lucene.index.memory.MemoryIndexat java.net.URLClassLoader$1.run(Unknown Source)at java.net.URLClassLoader$1.run(Unknown Source)at java.security.AccessController.doPrivileged(Native Method)at java.net.URLClassLoader.findClass(Unknown Source)at java.lang.ClassLoader.loadClass(Unknown Source)at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)at java.lang.ClassLoader.loadClass(Unknown Source)... 12 more
解决方法:
在项目下导入lucene-memory-5.3.1.jar包.
阅读全文
0 0
- java.lang.ClassNotFoundException: org.apache.lucene.index.memory.MemoryIndex
- java.lang.NoClassDefFoundError: org/apache/lucene/index/memory/MemoryIndex
- HTTP Status 500 - java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.pages.index.index_jsp
- java.lang.ClassNotFoundException: org.apache.log4j.LogManager
- java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlException
- java.lang.ClassNotFoundException: org.apache.jsp.login_jsp
- java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlOptions
- java.lang.ClassNotFoundException: org.apache.poi.POIXMLTypeLoader
- java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
- java.lang.ClassNotFoundException: org.apache.jsp.login_jsp
- java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils
- java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException
- "java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils"的解决办法
- java.lang.ClassNotFoundException: org.apache.commons.lang.xwork.StringUtils
- java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils
- struts2 java.lang.ClassNotFoundException: org.apache.commons.lang.xwork.StringUtils
- java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException
- java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException
- UI网站
- 实时进销存如何帮助企业从销售、采购到库存实现一体化管理?
- HTML空格字符
- 二叉排序树 分析、梳理、代码总结
- Springboot加载静态图片
- java.lang.ClassNotFoundException: org.apache.lucene.index.memory.MemoryIndex
- ios11 UITableView 为group的时候tableFooterView,tableHeaderView问题
- 迁移ECS云服务器
- KoaJs
- 深入理解js继承
- gerrit 与 gitlab
- 方格填数
- check,form,单选框与复选框总结
- Cannot read property 'Aspect' of undefined