Note that there are some explanatory texts on larger screens.

plurals
  1. POjava.lang.NoClassDefFoundError when Translating
    primarykey
    data
    text
    <p>I am using the Apertium Translator and using the sample code they provide. My code is like this.</p> <pre><code>import com.robtheis.aptr.language.Language; import com.robtheis.aptr.translate.Translate; public class Test { public static void main(String[] args) throws Exception { // Set the Apertium API Key - Get yours at http://api.apertium.org/register.jsp Translate.setKey("BNSCFhEL8DoTApc2I1+aa3UYkVg"); String translatedText = Translate.execute("Hola, mundo!", Language.SPANISH, Language.ENGLISH); System.out.println(translatedText); } } </code></pre> <p>I have no errors or warnings and when I run the program I get the following errors.</p> <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/json/simple/JSONValue at com.robtheis.aptr.ApertiumTranslatorAPI.jsonSubObjToString(ApertiumTranslatorAPI.java:195) at com.robtheis.aptr.ApertiumTranslatorAPI.retrieveSubObjString(ApertiumTranslatorAPI.java:140) at com.robtheis.aptr.translate.Translate.execute(Translate.java:56) at maple.Test.main(Test.java:11) Caused by: java.lang.ClassNotFoundException: org.json.simple.JSONValue at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 4 more </code></pre> <p>The .jar I'm using is the second one from <a href="https://github.com/rmtheis/apertium-translator-java-api/downloads" rel="nofollow">https://github.com/rmtheis/apertium-translator-java-api/downloads</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload