java.lang.Error: Unresolved compilation problem: The method translate(String, String, String) in the type LanguageTranslation is not applicable for the arguments (String, Language, Language)

Stack Overflow | gonz | 11 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Why is my watson translate service method not working?

    Stack Overflow | 11 months ago | gonz
    java.lang.Error: Unresolved compilation problem: The method translate(String, String, String) in the type LanguageTranslation is not applicable for the arguments (String, Language, Language)

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problem: The method translate(String, String, String) in the type LanguageTranslation is not applicable for the arguments (String, Language, Language)

      at ibm.Cognitive.Translate()
    2. ibm
      Cognitive.Translate
      1. ibm.Cognitive.Translate(Cognitive.java:20)
      1 frame
    3. Teste
      Watson.main
      1. Teste.Watson.main(Watson.java:16)
      1 frame