-1

I am currently working on an inventory system application on NetBeans 13(using java). In order to do my project, I need to connect to a database to store information. This is my first time using NetBeans so I have watched a couple of videos on this. I am currently having one major problem--when I try to run one of my projects, it runs, but when I attempt to add information to the database (i.e. when I fill out the "product form" and press the add button), it says "java.sql.SQLException: No suitable driver found for jdbc:derby://localhost:1527/Inventory". I'm sure that this is a very silly error but I have spent so long trying to figure it out and to no avail, I haven't been able to figure it out. I have attached some screenshots below if it is of any help. For reference, I am on a MacBook pro.

If there is any advice or information anyone can give me, I would sincerely really appreciate it!! I really would love to get this project going as soon as possible.

enter image description here enter image description here enter image description here enter image description here enter image description here

  • 2
    Please post code and error messages as text, not images. – shree.pat18 May 19 '22 at 03:44
  • I included the error in my text--"java.sql.SQLException: No suitable driver found for jdbc:derby://localhost:1527/Inventory". I just included images to show my display. There is nothing wrong with the code. There seems to be an issue with the setup which is why I included images. – imherebcsomethingisntworking May 19 '22 at 04:04
  • You need to add Derby to the build path of your application project. The fact you have a global library, and you can connect to the database from NetBeans itself doesn't mean it is on the classpath of your development project. – Mark Rotteveel May 19 '22 at 14:55

0 Answers0