Driver to connect databse to java

I have a problem

I want to get data from a graphical interface and save them on a SQL file on Netbeans and then import from SQL to fill the graphical interface.

I have my database ready but the only


I have how to get to the SQL from java, and I tried the code, then I got an Exception

ClassNotFoundException: myDriver.ClassName
SQLException: No suitable driver found for Jdbc:derby://localhost:1527/sample[app on APP]
BUILD SUCCESSFUL (total time: 1 second)"


You need to add the connector jar of the database to the classpath of your project, as stated in other answers.

With Derby, that jar is the same one that runs the database. Explanation of how to add a jar to the classpath in Netbeans.

For the oracle database you need to add oracle library for the datatbase connection. oracle library is available in the path of where you installed the oracle.

Need Your Help

Best Practice in Handling Multiple Browser Windows and/or Tabs


What is the best practice in handling multiple windows and/or tabs in a web application? What are the pros and cons of a given approach?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.