I solved this problem during the day. The decision took me many hours. If you are on debian based ubuntu or linux , first install mysql-connector-java to:
sudo apt install libmysql-java
It will install mysql-connector-java- * links in /usr/share/java/mysql-connector-java.jar
#!/bin/bash
I replaced /usr/bin/weka with the script above. Perhaps this can save hours for people like me. Another option is to change your desktop menu using
java -cp "/usr/share/java/mysql.jar:/usr/share/java/weka.jar" -Xmx500m weka.gui.GUIChooser
(in my case mysql.jar binds the correct driver version)
source share