Java ошибка 'файл класса для com.faster xml .jackson.core.JsonGenerationException not found' - PullRequest
0 голосов
/ 16 апреля 2020

Downloaded Gate8.6.1 - пытается выполнить следующую команду с заданным выводом. Может ли кто-нибудь указать мне правильное направление? Попытка добавить jackson-core.jar в classpath безуспешно.

BatchProcessAppJSON.java:90: warning: [deprecation] toURL() in File has been deprecated
      Document doc = Factory.newDocument(docFile.toURL(), encoding);
                                                ^
BatchProcessAppJSON.java:112: warning: [rawtypes] found raw type: Iterator
        Iterator annotTypesIt = annotTypesToWrite.iterator();
        ^
  missing type arguments for generic class Iterator<E>
  where E is a type-variable:
    E extends Object declared in interface Iterator
BatchProcessAppJSON.java:171: warning: [rawtypes] found raw type: ArrayList
          if(annotTypesToWrite == null) annotTypesToWrite = new ArrayList();
                                                                ^
  missing type arguments for generic class ArrayList<E>
  where E is a type-variable:
    E extends Object declared in class ArrayList
BatchProcessAppJSON.java:172: warning: [unchecked] unchecked call to add(E) as a member of the raw type List
          annotTypesToWrite.add(args[++i]);
                               ^
  where E is a type-variable:
    E extends Object declared in interface List
BatchProcessAppJSON.java:241: warning: [rawtypes] found raw type: List
  private static List annotTypesToWrite = null;
                 ^
  missing type arguments for generic class List<E>
  where E is a type-variable:
    E extends Object declared in interface List
BatchProcessAppJSON.java:123: error: cannot access JsonGenerationException
        docJsonString = DocumentJsonUtils.toJson(doc, annotationsToWrite);
                                                ^
  class file for com.fasterxml.jackson.core.JsonGenerationException not found
1 error
5 warnings```
...