I have VLC running under Windows without problems, but moving to Ubuntu 22 I can't seem to be able to get it to run with Java Menus.
I installed libbluray-bdj and libbluray-bin and it still crashes (just closes and brings me a error in the terminal). Interestingly enough it brings a different error depending on which version I use:
With openjdk 8:
Code: Select all
$ JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 vlc
[00007f86cc001130] libbluray demux: First play: 1, Top menu: 1
HDMV Titles: 495, BD-J Titles: 5, Other: 0
Error occurred during initialization of VM
java.lang.AbstractMethodError: java.io.FileSystem.isInvalid(Ljava/io/File;)Z
at java.io.File.isInvalid(File.java:189)
at java.io.File.exists(File.java:827)
at java.lang.ClassLoader$3.run(ClassLoader.java:1873)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1870)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
at java.lang.Runtime.loadLibrary0(Runtime.java:843)
at java.lang.System.loadLibrary(System.java:1136)
at java.lang.System.initializeSystemClass(System.java:1212)
QObject::~QObject: Timers cannot be stopped from another thread
Code: Select all
$ JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 vlc
Error occurred during initialization of boot layer
java.lang.LinkageError: loader 'bootstrap' attempted duplicate class definition for java.lang.invoke.SimpleMethodHandle. (java.lang.invoke.SimpleMethodHandle is in module java.base of loader 'bootstrap')
I installed VLC via sudo apt install vlc and libbluray via sudo apt install libbluray-bdj libbluray-bin so there isn't realy anything that could go wrong I guess?
I installed the java versions as follows after it still failed to see if that helps, but it didn't:
sudo apt-get install openjdk-11-jre
sudo apt-get install openjdk-11-jdk
sudo apt-get install openjdk-8-jdk
sudo apt-get install openjdk-8-jre
I am launching vlc via the terminal and passing it the JAVA_HOME path so it always finds the right version, so that shouldn't be an issue, since the error is clearly some java error code, so vlc can talk to the jvm
I also tried a daily build (Version 4.0.0 RC1) with the same result, so I am really at a loss here.
All I could find using google is that yes, libbluray-bdj libbluray-bin should have installed everything.
So I am now pretty much stuck and don't really know what to do.
Any help would be appreciated.