jitsi
jitsi copied to clipboard
Jitsi does not build on Fedora 34
Hello,
when trying to build jitsi on Fedora 34 it fails with several errors and warnings.
Errors:
[javac] /path/to/jitsi/src/net/java/sip/communicator/util/JitsiDnsNameService.java:35: error: cannot find symbol [javac] /path/to/jitsi/src/net/java/sip/communicator/util/JitsiDnsNameService.java:25: error: package sun.net.spi.nameservice does not exist [javac] /path/to/jitsi/src/net/java/sip/communicator/util/JitsiDnsNameServiceDescriptor.java:29: error: cannot find symbol [javac] /path/to/jitsi/src/net/java/sip/communicator/util/JitsiDnsNameServiceDescriptor.java:36: error: cannot find symbol [javac] /path/to/jitsi/src/net/java/sip/communicator/util/JitsiDnsNameServiceDescriptor.java:20: error: package sun.net.spi.nameservice does not exist [javac] errorIcon + StringEscapeUtils.escapeHtml4(messageTitle) [javac] /path/to/jitsi/src/net/java/sip/communicator/impl/gui/main/contactlist/GroupNode.java:144: error: no suitable method found for binarySearch(Vector<TreeNode>,ContactNode,NodeComparator) [javac] /path/to/jitsi/src/net/java/sip/communicator/impl/gui/main/contactlist/GroupNode.java:299: error: no suitable method found for binarySearch(Vector<TreeNode>,GroupNode,NodeComparator) [javac] /path/to/jitsi/src/net/java/sip/communicator/impl/gui/main/contactlist/GroupNode.java:331: error: incompatible types: inference variable T has incompatible bounds [javac] /path/to/jitsi/src/net/java/sip/communicator/impl/gui/main/contactlist/GroupNode.java:371: error: no suitable method found for sort(Vector<TreeNode>,NodeComparator) [javac] /path/to/jitsi/src/net/java/sip/communicator/impl/gui/customcontrols/ExtendedTableModel.java:42: error: incompatible types: Vector<Vector> cannot be converted to Vector<Vector<Object>> [javac] /path/to/jitsi/src/net/java/sip/communicator/plugin/jabberaccregwizz/IceConfigPanel.java:826: error: incompatible types: Vector<Vector> cannot be converted to Vector<Vector<StunServerDescriptor>> [javac] /path/to/jitsi/src/net/java/sip/communicator/plugin/jabberaccregwizz/IceConfigPanel.java:1322: error: incompatible types: Vector<Vector> cannot be converted to Vector<Vector<JingleNodeDescriptor>> [javac] /path/to/jitsi/src/net/java/sip/communicator/util/JitsiDnsNameService.java:74: error: method does not override or implement a method from a supertype [javac] /path/to/jitsi/src/net/java/sip/communicator/util/JitsiDnsNameService.java:95: error: method does not override or implement a method from a supertype
Regards,
Af0x
sun.net.spi.nameservice was removed from java 9+
https://github.com/BiglySoftware/BiglyBT/issues/1017#issuecomment-873667879
Thanks for the hint. Is there any solution so that jitsi can build again?
you can compile it with java-1.8.0-openjdk https://github.com/UnitedRPMs/jitsi/blob/master/jitsi.spec
also I think delete the files of .nameservice will work
I have java-11-openjdk-devel and java-1.8.0-openjdk-devel installed. How do I make it use the 1.8.0 version when compiling?
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
or https://src.fedoraproject.org/rpms/plexus-utils/c/cbe003609d889abf009841b851bfc0e00a9e876c?branch=rawhide
BuildRequires: maven-local-openjdk8
Thanks, I was able to build with a "Success" status. But when I run "ant run" I get the following: ant run.txt
to build on mock you need to add
%global java_home /usr/lib/jvm/java-1.8.0-openjdk
Until now I never had to use mock, only ant commands (rebuild, make, run).
maybe you need set java_home to ant JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk ant
Sadly I can´t make it work.
Hi, same problem; It uses java 1.8 but doensn't run ( seted java_home in build and running the package )... I am tired... I made a rpm with the electron version... Maybe it works for you. https://github.com/UnitedRPMs/jitsi-meet-electron
Hello, your package is about jitsi-meet but this issue is about the jitsi desktop version. Anyone can help to make my softphone work again using ant under Fedora 34?
commit https://github.com/jitsi/jitsi/commit/c81e58f1a9c63b60f6ebbccfca113906472b186b breaks things [1] , which ATM is the last commit, if you remove this commit should work
[1] https://github.com/jitsi/jitsi/pull/731#issuecomment-898058986
After removing the named commit, jitsi starts again. Thank you
Attention: The solution must to be solved without removal improvements...
Can you look where is the problem exactly?
The issue is solved in the new build branch: https://github.com/jitsi/jitsi/pull/731#issuecomment-958694846
It is not in main/master branch and there is not a new build release too. It is not "stable".
The problem will be solved when the new build will be here.
You can see my tickets:
- https://github.com/jitsi/jitsi/issues?q=is%3Aissue+author%3A%40me
Some:
- Bouncy Castle 1.69 (2021-06-07) instead of 1.54 (CVEs): https://github.com/jitsi/jitsi/issues/562
- It is possible to merge "new-build" branch into master?: https://github.com/jitsi/jitsi/issues/714
- CVE fixes?: https://github.com/jitsi/jitsi/issues/745
Note: The current main/master branch can not be compiled, it is better to have the current code here.