JVM fails when I try to compile the jvb project

Getting error unrecognized option - cp"…some classpath"

Checked for spelling and the required jar files they are all there

How do you try with mvn install?
Are you trying on master?
Which java and mvn versions are that?

I’m try this command:
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 "

when I try mvn install its giving an error on run

I’m using java 11 and maven 3.6.3

Where did you get that command from?

Try

mvn -U clean install package -Dassembly.skipAssembly=false
unzip jvb/target/jitsi-videobridge-${JVB_VERSION}-archive.zip -d $RELEASE_DIR
. /etc/jitsi/videobridge/config
$RELEASE_DIR/jitsi-videobridge-*/jvb.sh \
        --host=localhost --domain=$JVB_HOSTNAME --port=$JVB_PORT\
         --secret=$JVB_SECRET --apis=rest

From the repository read me file

Thank you :handshake:

We have managed to start the server. How do we test it?

Don’t you have a client to connect to jvb?
I think you are starting from the wrong direction … if you want to be playing and modifying the bridge use the quick install guide Self-Hosting Guide - Debian/Ubuntu server · Jitsi Meet Handbook so you deploy all components configured and running, make a 3 way call to make sure you have everything configured correctly and it is working.
Then you can stop that jvb and run the one from source you want to play with, but you will for sure have a client and the rest of the components working and correct jvb configurations to reuse.

Or the other option is, write a client so you can test it.

1 Like

Hi,

so I ran the mvn goal on linux and it worked

when I tried the same on ubuntu it was seperating the goals and end up having an error
I broke it down like this

  1. mvn -U clean install package -Dassembly.skipAssembly=false

unzip jvb/target/jitsi-videobridge-${JVB_VERSION}-SNAPSHOT-archive.zip -d $RELEASE_DIR . /etc/jitsi/videobridge/config $RELEASE_DIR/jitsi-videobridge-*/jvb.sh \ --host=localhost --domain=$JVB_HOSTNAME --port=$JVB_PORT–secret=$JVB_SECRET --apis=rest

I would like to know what the second step is doing. Is it setting some configurations?

and then on the client side(my own client) how do i configure it to connect to the videobridge. If I got it correctly I have to connect via endpoints, converting colibri to sdp and vice versa correct? Do I add jvb dependencies to my project?