PaodingAnalysis 提示 "dic home should not be a file, but a directory"

时间:2024-04-12 18:06:08
Exception in thread "main" net.paoding.analysis.exception.PaodingAnalysisException: dic home should not be a file, but a directory!

    at net.paoding.analysis.knife.PaodingMaker.setDicHomeProperties(PaodingMaker.java:338)

    at net.paoding.analysis.knife.PaodingMaker.getDicHome(PaodingMaker.java:261)

    at net.paoding.analysis.knife.PaodingMaker.loadProperties(PaodingMaker.java:189)

    at net.paoding.analysis.knife.PaodingMaker.loadProperties(PaodingMaker.java:228)

    at net.paoding.analysis.knife.PaodingMaker.loadProperties(PaodingMaker.java:228)

    at net.paoding.analysis.knife.PaodingMaker.getProperties(PaodingMaker.java:130)

    at net.paoding.analysis.analyzer.PaodingAnalyzer.init(PaodingAnalyzer.java:70)

    at net.paoding.analysis.analyzer.PaodingAnalyzer.<init>(PaodingAnalyzer.java:59)

    at net.paoding.analysis.analyzer.PaodingAnalyzer.<init>(PaodingAnalyzer.java:52)

    at examples.TokenizeWithPaoding.main(TokenizeWithPaoding.java:12)

net.paoding.analysis.exception.PaodingAnalysisException: dic home should not be a file, but a directory!

检查发现:F:\JAVA Project\PAW\Tokenizer 的"JAVA Project"之间有个空格

解决方案:现在F:\JAVA Project\PAW\Tokenizer\Tokenizer文件夹中拷贝Tokenize工程,到桌面,之后在Myeclipse8.6集成开发工具中删除Tokenize工程,之后将 桌面上的Tokenize工程导入到Myeclipse 8.6集成开发工具中,调试就可以成功。