DoctorD1501 / JAVMovieScraper

Scrape XBMC and Kodi movie metadeta and automatically rename files for Japanese Adult Videos (JAV), American Adult DVDs, and American Adult Webcontent
GNU General Public License v2.0
748 stars 162 forks source link

Application crash on startup on Linux (Manjaro) incl. Fix #342

Open Alkl58 opened 3 years ago

Alkl58 commented 3 years ago

I noticed the bug a long time ago and thus stayed on version v0.2.18-alpha

The bug is: Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel which is due to JAVA changes after version 8.

After some trial and error I found following workarount to get the latest version running:

java --module-path /usr/lib/jvm/java-11-openjdk/lib/javafx.base.jar:/usr/lib/jvm/java-11-openjdk/lib/javafx.controls.jar:/usr/lib/jvm/java-11-openjdk/lib/javafx.fxml.jar:/usr/lib/jvm/java-11-openjdk/lib/javafx.graphics.jar:/usr/lib/jvm/java-11-openjdk/lib/javafx.media.jar:/usr/lib/jvm/java-11-openjdk/lib/javafx.swing.jar:/usr/lib/jvm/java-11-openjdk/lib/javafx.web.jar:/usr/lib/jvm/java-11-openjdk/lib/javafx-swt.jar --add-modules ALL-MODULE-PATH -jar  JAVMovieScraper-v0.3.7.jar

I don't really know if this is worth fixing, or is worth writing somewhere for others to find.

Many Greetings and thank you for making this awesome application! :)

Edit:

I reduced the command line arg to:

java --module-path /usr/lib/jvm/java-11-openjdk/lib/javafx.base.jar:/usr/lib/jvm/java-11-openjdk/lib/javafx.graphics.jar:/usr/lib/jvm/java-11-openjdk/lib/javafx.swing.jar --add-modules ALL-MODULE-PATH -jar  JAVMovieScraper-v0.3.7.jar

needs testing tho.