Solved No suitable driver found

Discussion in 'Spigot Plugin Development' started by Dramatically, Feb 6, 2020.

Thread Status:
Not open for further replies.
  1. The code I have been using to make a flat db file and load it has been working fine for the past couple days but today it is not working at all.
    I get this error
    Code (Text):

    [WARNING] java.sql.SQLException: No suitable driver found for jdbc:sqlite:plugins/Auction/auctionhouse.db
    where in fact the database file is there and I can see it
     
  2. md_5

    Administrator Developer

    You need to Class.forName the sqlite class.

    Should be shown in any sqlite tutorial
     
  3. What do you mean? I’m not using an SQLite class?


    EDIT: I get what you mean but this worked before for me but doesn’t anymore when I haven’t changed anything or edited the plugin
     
  4. md_5

    Administrator Developer

    You probably removed another plugin that was loading it
     
    • Agree Agree x 1
  5. I did remove a plugin , I’ll try and solve that. How can I load it myself?
     
  6. Are we in the right section anymore?
     
  7. md_5

    Administrator Developer

     
Thread Status:
Not open for further replies.