Windows configuration:
1.configure path environment variable
use administrator role,open cmd
2.set path variable
C:\Windows\system32>setx /m PATH "%PATH%;C:\code\mysql-connector-java-5.1.39-bin.jar"
3.check path variable
C:\Windows\system32>echo %PATH%
or
C:\Windows\system32>path