Saturday, March 29, 2014

language translation
































hi,I have included a jar file- google-translate-api-java 0.97.jar and this is my code...
































import com.google.api.translate.Language;































import com.google.api.translate.Translate;
































public class Main {































public static void main(String[] args) throws Exception {
































Translate.setHttpReferrer("http://ift.tt/QqZk6x");































String translatedText = Translate.execute("Bonjour monde le",Language.FRENCH, Language.ENGLISH);































System.out.println(translatedText);































}
































}
































and I got the following error
































Exception in thread "main" java.lang.RuntimeException: Uncompilable source code
































how to clear it???? thanks in advance































































No comments:

Post a Comment