In Kubuntu 18.10 (cosmic) the application MediathekView crashes with the following error message:
java.lang.NoClassDefFoundError: com/jidesoft/utils/ThreadCheckingRepaintManager
Remark: the message is only visible when MediathekView is started from a console using the command mediathekview
. When MediathekView is started from the launcher nothing happens (no error message, no nothing).
This issue does not exist with full versions of MediathekView which can be downloaded from the official website here; this version comes with the missing libraries inside a
lib
folder; version 13.2.1, the latest at the time of this answer worked well for me. The installation only consists of unpacking the archive. The fileMediathekView.jar
starts the application, thelib
folder is required for the application to start.Starting MediathekView using the command
java -jar MediathekView.jar
will not work though; this new error is thrown:For some reason JavaFX is not found. First you must make sure that the package
libopenjfx-java
is installed; since it is a dependency of MediathekView it should be already installed. Then all the JAR files for JavaFX must be added by hand to the class path when starting MediathekView:You can add a path in front of
MediathekView.jar
to match the location where you unpacked the installation package.MediathekView should start, the splash screen will not work though.
And MediathekView has a picky Java version check built in and will complain about with some specific JDK release numbers; for instance OpenJDK 11 will work but not the bug fixed version OpenJDK 11.0.1.
You can just copy the following line:
in the file
mediathekview.sh
.Put it in the first line after the comments, then it will work if you run
mediathekview.sh
.You can remove MediathekView and use MediathekViewWeb instead. It has less features (see the readme, German only) but it does not require any installation.
No, you can't "just copy that line". If you do, you'll receive the very next error:
because the
lib
s lead to classes compiled by JDK11, and not JDK8.Check version of openjfx ("sudo apt install openjfx" installs it or returns the version). I am on 18.04 LTS. So it was 1.8.xx. Concerning java I have several versions installed. When not the corresponding version is chosen (8) this error was reported. To switch versions use "sudo update-alternatives --config java" which indicates which versions are installed, which is chosen and which number you have to insert to switch. To recheck you can enter "java --version".