Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run successfully README instruction #1522

Closed
dtvu94 opened this issue Nov 16, 2020 · 1 comment
Closed

Cannot run successfully README instruction #1522

dtvu94 opened this issue Nov 16, 2020 · 1 comment

Comments

@dtvu94
Copy link

dtvu94 commented Nov 16, 2020

This Issue tracker is only for reporting bugs and tracking code related issues.

Before posting, please make sure you check community.jitsi.org to see if the same or similar bugs have already been discussed. General questions, installation help, and feature requests can also be posted to community.jitsi.org.

Description


I am following this guide https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-manual
And the https://download.jitsi.org/jitsi-videobridge/linux is 404.
Hence I open the repo source do as README

Current behavior


Get error:
Error: Could not find or load main class org.jitsi.videobridge.MainKt Caused by: java.lang.ClassNotFoundException: org.jitsi.videobridge.MainKt [ERROR] Command execution failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404) at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:982) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:929) at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:457) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for jvb-parent 2.1-SNAPSHOT: [INFO] [INFO] jvb-parent ......................................... FAILURE [ 0.555 s] [INFO] jvb-api-parent ..................................... SKIPPED [INFO] jvb-api-common ..................................... SKIPPED [INFO] jvb-api-client ..................................... SKIPPED [INFO] jitsi-videobridge .................................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.873 s [INFO] Finished at: 2020-11-16T17:48:40+07:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project jvb-parent: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [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 fo

Expected Behavior


Running successfully.

Possible Solution


Steps to reproduce


  • git clone https://github.com/jitsi/jitsi-videobridge.git
  • cd jitsi-videobridge
  • JVB_HOME="Absolute_path/Documents/jitsi_workspace/jitsi-videobridge"
  • mvn compile exec:exec -Dexec.executable=java -Dexec.args="-cp %classpath org.jitsi.videobridge.MainKt -Djava.library.path=$JVB_HOME/lib/native/linux-64 -Djava.util.logging.config.file=$JVB_HOME/lib/logging.properties -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=.jitsi-videobridge "

Environment details


Linux Mint / Ubuntu 20.04
java-11-openjdk-amd64 / java-8-openjdk-amd64

@dtvu94
Copy link
Author

dtvu94 commented Nov 16, 2020

I run mvn compile in the root folder of the repo successfully.
Then I found that I need to:

  • Change JVB_HOME
  • Run README command in jvb folder with adding apis=rest,xmpp

Steps are:

  • JVB_HOME=Absolute_path/Documents/jitsi_workspace/jitsi-videobridge/jvb
  • cd jvb
  • mvn compile exec:exec -Dexec.executable=java -Dexec.args="-cp %classpath org.jitsi.videobridge.MainKt -Djava.library.path=$JVB_HOME/lib/native/linux-64 -Djava.util.logging.config.file=$JVB_HOME/lib/logging.properties -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=.jitsi-videobridge -apis=rest,xmpp"

@dtvu94 dtvu94 closed this as completed Nov 16, 2020
zWaR added a commit to zWaR/jitsi-videobridge that referenced this issue Dec 13, 2020
Improved instructions for running jvb from source.

Issue jitsi#1522
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant