先贴一下异常:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at org.apdplat.word.dictionary.impl.DoubleArrayDictionaryTrie.allocate(DoubleArrayDictionaryTrie.java:188)
at org.apdplat.word.dictionary.impl.DoubleArrayDictionaryTrie.init(DoubleArrayDictionaryTrie.java:207)
at org.apdplat.word.dictionary.impl.DoubleArrayDictionaryTrie.addAll(DoubleArrayDictionaryTrie.java:307)
at org.apdplat.word.dictionary.DictionaryFactory$DictionaryHolder$1.load(DictionaryFactory.java:116)
at org.apdplat.word.util.AutoDetector.loadAndWatch(AutoDetector.java:102)
at org.apdplat.word.dictionary.DictionaryFactory$DictionaryHolder.reload(DictionaryFactory.java:87)
at org.apdplat.word.dictionary.DictionaryFactory.reload(DictionaryFactory.java:65)
at org.apdplat.word.dictionary.DictionaryEnum.createDictionary(DictionaryEnum.java:65)
at org.apdplat.word.dictionary.DictionaryEnum.<clinit>(DictionaryEnum.java:20)
at com.zjs.Application.main(Application.java:42)
解决方式:
1.
2. 输入 : -Xms128m -Xmx1024m -XX:MaxPermSize=512m