贴一下问题:
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.DictionaryFactoryDictionaryHolder1.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. 找到添加vm选项
3. 输入-Xms128m -Xmx1024m -XX:MaxPermSize=512m 即可
版权声明:本文为qq_53429705原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。