Skip to content

Cannot read json file in config folder #2

Open

Description

@timyip3

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

  1. eagerjiang commented on Sep 10, 2019

    @eagerjiang

    same issue occurred when i ran the test cases

  2. yichen0831 commented on Sep 16, 2019

    @yichen0831
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions