mangotv / ik-analyzer

Automatically exported from code.google.com/p/ik-analyzer
1 stars 0 forks source link

IKanalyzer 2012 JDK1.5解决报错 #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
你好,我的项目是JDK1.5的,在用IKanalyzer 
2012时报以下错误,IKanalyzer 2012不支持JDK1.5?
Exception in thread "main" java.lang.NoSuchMethodError: 
java.util.Arrays.binarySearch([Ljava/lang/Object;IILjava/lang/Object;)I
    at org.wltea.analyzer.dic.DictSegment.lookforSegment(DictSegment.java:229)
    at org.wltea.analyzer.dic.DictSegment.fillSegment(DictSegment.java:199)
    at org.wltea.analyzer.dic.DictSegment.fillSegment(DictSegment.java:170)
    at org.wltea.analyzer.dic.Dictionary.loadMainDict(Dictionary.java:209)
    at org.wltea.analyzer.dic.Dictionary.<init>(Dictionary.java:69)
    at org.wltea.analyzer.dic.Dictionary.initial(Dictionary.java:86)

Original issue reported on code.google.com by kingcs2008@gmail.com on 17 Jul 2012 at 8:03

GoogleCodeExporter commented 9 years ago
嗯.不支持换成JDK1.6就好了...所以换了把...我也换了JDK1.6了...

Original comment by jn3.1415...@gmail.com on 20 Jul 2012 at 2:49

GoogleCodeExporter commented 9 years ago
可以在不改jdk版本的情况下,用IKanalyzer 2012? 
毕竟项目都做的差不多了,只是在项目上加搜索功能.用到了IKa
nalyzer 2012.

Original comment by kingcs2008@gmail.com on 23 Jul 2012 at 7:22

GoogleCodeExporter commented 9 years ago
IK2012定为在1.6jdk,如果一定要在5.0基础上使用
那么需要自行修改源码。

Original comment by linliang...@gmail.com on 10 Aug 2012 at 1:48

GoogleCodeExporter commented 9 years ago
IK2012定为在1.6jdk,如果一定要在5.0基础上使用
那么需要自行修改源码。

Original comment by linliang...@gmail.com on 10 Aug 2012 at 1:48