There have been many tutorials on the internet.
Http://www.cnblogs.com/dennisit/archive/2013/04/07/3005847.html
Http://blog.sina.com.cn/s/blog_4c9d7da201013wv2.html
only two points here:
DIC files are encoded in a "UTF-8 without DOM" format, preferably in the SRC folder of your project.A screenshot of my example
the corresponding IKAnalyzer.cfg.xml file settings are as follows: [HTML] View plain copy <span style= "FONT-SIZE:14PX;" ><?xml version= "1.0" encoding= "UTF-8"?> <! doctype properties system "Http://java.sun.com/dtd/properties.dtd" > <properties> <comment>IK Analyzer Extended Configuration </comment> <!--Users can configure their own extension dictionaries here --> <entry key= "Ext_dict" >./dic/scut.dic;</entry> <!--Users can configure their own extension stop word dictionary here--> <entry key= "Ext_stopwords" >./dic/stopword.dic;</entry> </properties></span>