Github: https://github.com/huymluu/yandex-translate-api
I would like to use this API in my project, as I tried multiple Yandex API wrapper for java, although I get this error: java.lang.ClassNotFoundException: yandexAPI.YandexException
(https://github.com/Bumbleboss/yandexTranslate_api this error I got when I used that project.). So my question is, how can I fix the error, or make a jar from the project https://github.com/huymluu/yandex-translate-api
so I can try that in my project! Thanks!
CODE:
public String Translate(String text){
String translatedText = "";
YandexAPI api = new YandexAPI("APIKEY");
try {
translatedText = (api.getYandexResponse(text, YandexLanguage.Dutch).getText().get(0));
} catch (YandexException e) {
e.printStackTrace();
}
return translatedText;
}