title: Centos mysql connector java - JDBC Driver
body: <p>I try to run this  java.jar file in centos 5 and i see this error. i installed java with  </p>
  
  <pre><code>yum install java 
  </code></pre>
  
  <p>but i think jdbc is not installed coz when i type this command</p>
  
  <pre><code>yum install mysql-connector-java
  </code></pre>
  
  <p>i get  No package mysql-connector-java available.
  Nothing to do</p>
  
  <p>when i run this commandd to start jar file </p>
  
  <pre><code>java -jar "/home/httpd/5plus.net/httpdocs/test/server/ChatServer.jar"
  </code></pre>
  
  <p>i see this message</p>
  
  <pre><code>[root@google ~]# java -jar "/home/httpd/5plus.net/httpdocs/test/server/ChatServer.jar"
  
  
   -- Sat Apr 05 10:45:01 GMT 2014 ---   Start Main Server   ---
   -- Sat Apr 05 10:45:01 GMT 2014 ---   Can't register JDBC driver: org.gjt.mm.my        sql.Driver, Exception: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver    ---
   -- Sat Apr 05 10:45:01 GMT 2014 ---   Port 8090 Listen Start   ---
   -- Sat Apr 05 10:45:02 GMT 2014 ---   Client Connected: Ip = 208.54.35.217   -- -
   -- Sat Apr 05 10:45:03 GMT 2014 ---   InputData From 208.54.35.217 useridx: 0 D ata:  LOGIN$81   ---
  java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/plus?user=plus&amp;password=plus123&amp;characterEncoding=utf8
   -- Sat Apr 05 10:45:03 GMT 2014 ---   Can't create a new connection for jdbc:my sql://localhost/plus?user=plus&amp;password=plus123&amp;characterEncoding=utf8   ---
  </code></pre>