Mysql problem: no suitable driver

Discussion in 'Plugin Development' started by Black_Jack, Jan 8, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Black_Jack

    Hello folks! I've got a problem with my plugin. I just written a small plugin which insert chat data into MySQL base. I'm new to java, so there is a problem.

    Here is the stack trace. http://pastebin.com/RGHht7Fk

    This is Main.class - http://pastebin.com/3huUAs5n
    This is PlayerListener - http://pastebin.com/RQEgpSBB


    I think its problem with location of library. I put the jdbc driver into ./lib directory, but problem still appear. So, may be I should make a manifest file with lib location. Can you help me? Thank you!
     
  2. Offline

    Black_Jack

    Hmm, added this to my function. Nothing changed. Problem still appear. Any ideas?
     
  3. Hmm, I think you forgot "mysql" in the url, it's "jdbc:mysql://host/database"
    Consult my class for further help, it's been tested.
     
    Black_Jack likes this.
  4. Offline

    Black_Jack

    Oh, thx so much! Now its working for me
     
Thread Status:
Not open for further replies.

Share This Page