huy510cnt / language-detection

Automatically exported from code.google.com/p/language-detection
0 stars 0 forks source link

exception when running calling DetectorFactory.loadProfile() #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try {
            DetectorFactory.loadProfile("profiles");
        } catch (LangDetectException e1) {
            System.out.println("exception: " + e1.getMessage());
            e1.printStackTrace();
        }
2.
3.

What is the expected output? What do you see instead?
I see the following message:      

[java] Java Result: 1

What version of the product are you using? On what operating system?
langdetect-09-13-2011.zip on Mac

Please provide any additional information below.

Original issue reported on code.google.com by sabah...@gmail.com on 28 Oct 2011 at 11:59

GoogleCodeExporter commented 9 years ago
It is not a message of language-detection but that ant said the exit code was 1.
Are there actual error messages at the previous lines?

Original comment by nakatani.shuyo on 31 Oct 2011 at 8:11

GoogleCodeExporter commented 9 years ago
I fixed it.  I had to catch Throwable to detect it. It had to do with the 
jsonic.jar being embedded in the main jar file and ant was not finding it in 
the classpath.

Thanks.

Original comment by sabah...@gmail.com on 31 Oct 2011 at 3:35

GoogleCodeExporter commented 9 years ago
I see.
I'm glad to hear solving your touble!

Original comment by nakatani.shuyo on 1 Nov 2011 at 4:21