title: how to install mysqlconnecter java correctly?
body: <p>after surfing the web I realized that I should set the class path the path File of the connecter jar file in system environment variables I did so and in commandline by entering this command I have this:</p>
  
  <pre><code>C:\Users\User&gt;echo %classpath%
  D:\classpath\mysql-connector-java-5.1.22-bin.jar
  </code></pre>
  
  <p>but when I wrote a java program to show me the class path:</p>
  
  <pre><code>System.out.println(System.getProperty("java.class.path"));
  </code></pre>
  
  <p>it shows me this one:</p>
  
  <pre><code>C:\Users\User\Documents\NetBeansProjects\JavaApplication3\build\classes;C:\Users\User\Documents\NetBeansProjects\JavaApplication3\src
  </code></pre>
  
  <p>I want to connect to a database how should I install my connector?</p>