use Ikanalyzer 3.2.8, tonight because this error is crazy an online, Baidu, Google a variety of search have not found can solve the method.
Error:java.lang.NoClassDefFoundError:Could not initialize class Org.wltea.analyzer.dic.Dictionary
later debugging found that the
memory overflow was retrieved when no index was built.
when the index is under construction, the report:
java.lang.noclassdeffounderror:could not initialize class Org.wltea.analyzer.dic.Dictionar y .
and see Mr. Lin (http://linliangyi2007.iteye.com/) on the blog to reply to other people's comments: " IK has a 270,000-word dictionary that takes up 27m of memory, so you should be aware of your JVM's memory settings, which by default are only 64M, which is not enough for existing services. ".
I don't think the JVM was too small when Tomcat ran up.
decisively add-xms512m-xmx768m to the Tomcat VM arguments .
the problem is solved.
Ikanalyzer 3.2.8 Error Problem Solving method