I’m trying to use weka reading data from my local MySql database.
I put DatabaseUtils.prop in my home directory and launch weka as a command. I receive this message
Trying to add database driver (JDBC): com.mysql.jdbc.Driver - Error, not in CLASSPATH?
But the file is being loaded, since when I try to connect, the url is already set as in my config file.
I tried to run weka from its folder using
java -cp ./mysql-connector-java-5.12-bin.jar -jar weka.jar
but this isn’t working neither, since apparently using -jar “overrides the classpath variable” (quoted since I don’t know what does that mean)
Solved
I used this command
found here, to whom I replaced ‘;’ with ‘:’ because apparently this is how it works on Linux