-1

I am new in Netbeans. I am working on a project on java using Netbeans IDE and mysql sever in Ubuntu. My database is successfully build . I have created the JFrame of a login page which is connected to the database. Page is running successfully,

But when I am giving the input, and clicking the button(ex,. Submit), its giving the following error

No suitable driver found for jdbc:derby://localhost:1527/ganDb[on APP]

And a pop up is coming saying:

java.lang.NullPointerException
NilsH
  • 13,705
  • 4
  • 41
  • 59
AM26
  • 241
  • 1
  • 8
  • 24

1 Answers1

1

The library is not in your project classpath, you can right-click in the project an then in "properties" next in "libraries" and click in add library and find .jar file that contain de driver and add them to your project.

If you are using jpa you can see in "services"->"databases" that your driver is in it and the connection have been initialized.