In latest Jigasi, a maven dependency not found in repository

I have done git clone from jigasi master branch. After maven clean compile, I got below error.

Could not find artifact org.jitsi:jitsi-protocol:jar:2.14.8008466e1 in jitsi-maven-repository-releases

(https://raw.github.com/jitsi/jitsi-maven-repository/master/releases/)

A dependency not present in maven repo. Could you please help me.

@damencho ?

As a quick fix, I just comment the dependency from pom.xml file.
Now after deploying in server I got below error in log file.

Error: A JNI error has occurred, please check your installation and try again
Exception in thread “main” java.lang.UnsupportedClassVersionError: org/jitsi/jigasi/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)

Are you using java 11?

@damencho I am using JAVA 17 for code compile and build. Jigasi Docker container is using JAVA 8.

You need to run it with at least java11.

Do I need to make Jigasi container java from 8 to 11?
Or Need to code build in Java 11?

Jigasi on Docker is already using Java 11, are you using the latest stable images?

@saghul Yes, I am using Jitsi version 6726. In which jigasi container is using java 8.

That is not the latest version: Release stable-7439-2: release · jitsi/docker-jitsi-meet · GitHub

@saghul I have installed open jdk java 11 in docker container. Still getting below error…

Error: A JNI error has occurred, please check your installation and try again
Exception in thread “main” java.lang.UnsupportedClassVersionError: org/jitsi/jigasi/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
Error: A JNI error has occurred, please check your installation and try again

This shows you are still running with java 8.

Just use the latest version, don’t hack an old container version, it’s bound to have issues.