Учебник Kurento не запускается

Jonas спросил: 11 июня 2018 в 10:45 в: amazon-web-services

Я пытаюсь запустить учебник Kurento "WebRTC Magic Mirror" с терминала Mint Linux, но получаю эти ошибки.

 mvn compile exec:java -Dkms.url=ws://(MY aws ip):8888/kurento
Warning: JAVA_HOME environment variable is not set.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Kurento Java Tutorial - Magic Mirror 6.7.1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ kurento-magic-mirror ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ kurento-magic-mirror ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-bytecode-version) @ kurento-magic-mirror ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-ban-duplicate-classes) @ kurento-magic-mirror ---
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BanDuplicateClasses failed with message:
Duplicate classes found:  Found in:
    org.slf4j:jcl-over-slf4j:jar:1.7.21:compile
    commons-logging:commons-logging:jar:1.1.3:compile
  Duplicate classes:
    org/apache/commons/logging/impl/SimpleLog$1.class
    org/apache/commons/logging/LogConfigurationException.class
    org/apache/commons/logging/Log.class
    org/apache/commons/logging/impl/NoOpLog.class
    org/apache/commons/logging/impl/SimpleLog.class
    org/apache/commons/logging/LogFactory.class[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-ban-circular-dependencies) @ kurento-magic-mirror ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create-timestamp (get-build-timestamp) @ kurento-magic-mirror ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ kurento-magic-mirror ---
[INFO] Executing: /bin/sh -c cd '/home/jonado/kurento-tutorial-java/kurento-magic-mirror' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /home/jonado/kurento-tutorial-java/kurento-magic-mirror
[INFO] Storing buildNumber: a54263bde3275fc6e49db51be17268040df4e53d at timestamp: 1530780937453
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref[INFO] Executing: /bin/sh -c cd '/home/jonado/kurento-tutorial-java/kurento-magic-mirror' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /home/jonado/kurento-tutorial-java/kurento-magic-mirror
[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ kurento-magic-mirror ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 14 resources
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ kurento-magic-mirror ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /home/jonado/kurento-tutorial-java/kurento-magic-mirror/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.688 s
[INFO] Finished at: 2018-07-05T11:55:37+03:00
[INFO] Final Memory: 29M/599M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project kurento-magic-mirror: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Я установил сервер Kurento Media на AWS как написанный в документации (часть 4.1): https://media.readthedocs.org/pdf/doc-kurento/stable/doc-kurento.pdf, после чего просто следуйте инструкциям для запуска учебника.

В первом предупреждающем сообщении говорится:

Переменная среды JAVA_HOME не установлена.

Поскольку Media Server находится на AWS, не предполагается быть уже установленным? Если нет, как его установить?

Кроме того, я хотел настроить STUN-сервер, однако я не знаю, где найти файл WebRtcEndpoint.conf.ini, так как Kurento Media Server находится на AWS. Итак, где можно найти файл WebRtcEndpoint.conf.ini?

И главный вопрос: что мне изменить / установить / обновить, чтобы успешно запустить учебник?

0 ответов