SQlite in NetBeans

Hi I am trying to add a sqlite driver to the netbeans 6.9.1 project, these are the steps I took:

  • adding sqlitejdbc-v056.jar to my project libraries
  • on the "services" tab in netbeans, creating a driver named "SQLite", adding a driver file and finding a driver for the class (org.sqlite.JDBC) for the driver.
  • Now, by right-clicking on the driver and selecting "Connect Using", I need to add the JDBC URL for this driver, but any URL that I add continues to receive the following message:

Unable to add connection. cannot connect to jdbc: sqlite: / using org.sqlite.JDBC - you can find a suitable driver -.

please let me know how to create this connection for a simple database. thanks

+6
sqlite netbeans
source share
1 answer

If you work with windows, change all backslashes to slashes in your path. This I am using right now:

jdbc:sqlite://T:/data/sampledb.sqlite 
+6
source share

All Articles