I try to run this java.jar file in centos 5 and i see this error. i installed java with
yum install java
but i think jdbc is not installed coz when i type this command
yum install mysql-connector-java
i get No package mysql-connector-java available. Nothing to do
when i run this commandd to start jar file
java -jar "/home/httpd/5plus.net/httpdocs/test/server/ChatServer.jar"
i see this message
[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&password=plus123&characterEncoding=utf8
-- Sat Apr 05 10:45:03 GMT 2014 --- Can't create a new connection for jdbc:my sql://localhost/plus?user=plus&password=plus123&characterEncoding=utf8 ---