Check out example codes for "set classpath for mysql-connector.jar". It will help you in understanding the concepts better.

Code Example 1

JAVA_HOME  
 C:\Program Files\Java\jdk1.6.0

 PATH 
 C:\Program Files\Java\jdk1.6.0\bin;

 CLASSPATH
 .;C:\Program Files\Java\jre1.6.0\lib\ext\mysql-connector.jar;.;

Learn ReactJs, React Native from akashmittal.com