An error of missing driver may be reported, resulting in failure to connect to the database. Save the weka.sh file and run sh weka.sh in the shell command line to start wekaĨ. This step is to change the default mysql driver of weka, refer to the post ħ. JdbcURL=jdbc:mysql://mysqlserver/username #jdbcURL=jdbc:rmi://expserver/jdbc:idb=experiments.prp JdbcDriver=RmiJdbc.RJDriver,jdbc.idbDriver.mysql.Driver,
#jdbcDriver=RmiJdbc.RJDriver,jdbc.idbDriver
#Weka ubuntu drivers
# The comma-separated list of jdbc drivers to use Modify the weka.jar/weka/experiment/DataBaseUtils.props file, the modified part is as follows: Java -Xmx512M -classpath $WEKA_HOME:$JDBC_PATH:$CLASSPATH Ħ. JDBC_PATH="$WEKA_HOME/jars/hsqldb.jar:$WEKA_HOME/jars/idb.jar:$WEKA_HOME/jars/mkjdbc.jar:$WEKA_HOME/jars/RmiJdbc.jar:$WEKA_HOME/mysql-connector-java-3.1.14-bin.jar"ĬLASSPATH="$JDBC_PATH:$CLASSATH:$WEKA_HOME/weka.jar:$WEKA_HOME/libsvm-3.21/java/libsvm.jar:$WEKA_HOME/wlsvm.jar"
In the weka3-6-13 folder, create and write the weka.sh file with the following content: Download mysql-connector-java-3.1.14-bin.jar and copy it to $WEKA_HOME,ĥ. Download libsvm-3.21, unzip it to the weka3-6-13 folder, download libsvm.jar and wlsvm.jar, and copy these two jar packages to $WEKA_HOME/libsvm-3.21/java/libsvm.jar and $WEKA_HOME/wlsvm.jar, $WEKA_HOME is the path after weka decompressionĤ. Download weka3-6-13, which can be downloaded from. This article uses the system Ubuntu12.04LTSġ. Changes: Now includes Linux natives built on Ubuntu 20.04 against libgfortran.5 and glibc 2.31 (and.