Build path is for compilation purpose (assuming you don't have code to include mysql connector jar in package).
If this is web application, add it to lib folder.
If this is standalone application, make sure mysql connector jar available for runtime.