0

I tried to create a connection between java and SQL Server. The driver is working, but 'Driver Class' that I wrote in the code raise this error:

'No suitable driver found for jdbc:sqlserver://DESKTOP-04\SQL:1433;databaseName=Onschedule'

snapshot of my code and the error I've got

Dale K
  • 25,246
  • 15
  • 42
  • 71
YaelF
  • 36
  • 4
  • You need to post code as text not an image. – Dale K Oct 28 '19 at 20:09
  • Possible duplicate of [java.sql.SQLException: No suitable driver found for jdbc:microsoft:sqlserver](https://stackoverflow.com/questions/5616898/java-sql-sqlexception-no-suitable-driver-found-for-jdbcmicrosoftsqlserver) – armandino Oct 28 '19 at 20:20

1 Answers1

-1

Your embedded database does not have access to a .jar. You need to make sure that the Drivers node has access to the JavaDB .jar file. This file is typically located in the bin/ folder in the directory that JavaDB was installed on your machine.

Suede
  • 416
  • 2
  • 5
  • 16