malcolmgreaves / language-detection

Automatically exported from code.google.com/p/language-detection . Some after-the-fact modifications to get this working within sbt.
Apache License 2.0
5 stars 5 forks source link

net.arnx.jsonic.JSON not found exception #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I just made an API call to loadProfile using a DetectorFactory and supplied 
"trunk/profile" as the argument (as suggested in the tutorial). It reports that 
the net.arnx.jsonic.JSON class along with the net.arnx.jsonic.JSONException 
class are both missing. DetectorFactory seems to import them in it, and I guess 
these classes haven't been bundled in the LangDetect jar file ?  

I'm using langdetect-05-09-2011.jar with JavaSE 1.6 on Mac OSX (Snow Leopard). 
I just downloaded jsonic-1.2.5.zip but wondering where and how to integrate it 
with langdetect before using the API call to the same.

Thanks!

Original issue reported on code.google.com by tr.sudar...@gmail.com on 14 May 2011 at 11:56

GoogleCodeExporter commented 9 years ago
Please add jsonic-1.2.x.jar into classpath.
(It is bundled for executable jar but not used in normal classpath)

Original comment by nakatani.shuyo on 16 May 2011 at 3:41

GoogleCodeExporter commented 9 years ago
If you are a maven user, add this dependency to the pom.xml to find a jsonic 
jar from the central repo:

<dependency>
  <groupId>net.arnx</groupId>
  <artifactId>jsonic</artifactId>
  <version>1.2.7</version>
</dependency>

Original comment by hideki.shima on 17 Nov 2011 at 7:11