Make sure you add the CLASSPATH in ~/.bashrc file and source the file after edit. I had same issue and it got resolved after adding the CLASSPATH. The value shoule be the dir path of where the connector is installed.
~/.bashrc