Java version problem
-
Hallo,
Ich habe Mediathekview 13.2.1 auf Linux Mint (wie Ubuntu) mit Java 8 / 1.8.
Das Programm startet nicht, ich bekommen den Fehler:. Portable Mode: false Exception in thread "main" java.lang.NoClassDefFoundError: javafx/concurrent/Task at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) 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:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at mediathek.Main.setupPortableMode(Main.java:149) at mediathek.Main.main(Main.java:158) Caused by: java.lang.ClassNotFoundException: javafx.concurrent.Task at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 14 more
Nur Java 8 ist installiert,
$ dpkg -l | grep jdk 3254:ii openjdk-8-jdk:amd64 8u191-b12-2ubuntu0.18.04.1 amd64 OpenJDK Development Kit (JDK) 3255:ii openjdk-8-jdk-headless:amd64 8u191-b12-2ubuntu0.18.04.1 amd64 OpenJDK Development Kit (JDK) (headless) 3256:ii openjdk-8-jre:amd64 8u191-b12-2ubuntu0.18.04.1 amd64 OpenJDK Java runtime, using Hotspot JIT 3257:ii openjdk-8-jre-headless:amd64 8u191-b12-2ubuntu0.18.04.1 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
JavaFx is installated too:
$ dpkg -l | grep -i javafx 2138:ii libopenjfx-java 11.0.2+1-1~18.04.2 all JavaFX/OpenJFX - Rich client application platform for Java (Java libraries) 2139:ii libopenjfx-jni 11.0.2+1-1~18.04.2 amd64 JavaFX/OpenJFX - Rich client application platform for Java (native libraries) 3258:ii openjfx 11.0.2+1-1~18.04.2 amd64 JavaFX/OpenJFX - Rich client application platform for Java 3259:ii openjfx-source 11.0.2+1-1~18.04.2 all JavaFX/OpenJFX - Rich client application platform for Java (sources)
-
-
danke, das ist wahrscheinlich das Problem!
-
Falls auch auch Andere auf dem gleichen Problem stoßen, ich habe die OpenJFX 8 library so installiert:
sudo apt-get install libopenjfx-jni=8u161-b12-1ubuntu2 libopenjfx-java=8u161-b12-1ubuntu2 openjfx=8u161-b12-1ubuntu2 -