You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to create OpenCC object, the system cannot find the corresponding json file in the jar file for conversion.
Here is the error message:
15:11:51,225 ERROR [stderr] (default task-39) java.io.FileNotFoundException: C:\wildfly-9.0.2.Final-IcmsScan\standalone\deployments\icmsscan-ear.ear\lib\OpenCC-Java-all-0.1.jar\config\s2t.json (The system cannot find the path specified)
15:11:51,226 ERROR [stderr] (default task-39) at java.io.FileInputStream.open0(Native Method)
15:11:51,226 ERROR [stderr] (default task-39) at java.io.FileInputStream.open(Unknown Source)
15:11:51,227 ERROR [stderr] (default task-39) at java.io.FileInputStream.(Unknown Source)
15:11:51,227 ERROR [stderr] (default task-39) at java.io.FileReader.(Unknown Source)
15:11:51,227 ERROR [stderr] (default task-39) at opencc.utils.Dictionary.loadDict(Dictionary.java:116)
15:11:51,227 ERROR [stderr] (default task-39) at opencc.utils.Dictionary.setConfig(Dictionary.java:82)
15:11:51,227 ERROR [stderr] (default task-39) at opencc.utils.Dictionary.(Dictionary.java:38)
15:11:51,227 ERROR [stderr] (default task-39) at opencc.OpenCC.(OpenCC.java:27)
Activity
eagerjiang commentedon Sep 10, 2019
same issue occurred when i ran the test cases
yichen0831 commentedon Sep 16, 2019
I have rewritten the OpenCC project. The release of v0.2 can be downloaded from the release page.
Please try it and see if the issue is still there.
Note: there are settings required to be added to the module-info.java file. Please refer to README.md.