• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Why am I getting Driver Class Not Found error

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings
I am using a database script to create a database with 3 tables and populate the tables with data.

Database informatiom: Apache Derby database
Driver information: org.apache.derby.jdbc.EmbeddedDriver version 10.15.2.0 driver.
URL: jdbc:derby:testdb;create=true

I am calling the database script from a pom.xml file. In the pom.xml, I am using the "sql-maven-plugin" plugin by "org.codehaus.mojo". This plugin runs the script file(s) listed in the pom. I use a simple script by apache derby that sets the classpath and the module-path environment variables for the command prompt session. When running the Maven from the Windows 10 command line "mvn clean install", I receive the following error:
Driver class not found: org.apache.derby.jdbc.EmbeddedDriver

I can fix this error by using an older version of the database driver (org.apache.derby.jdbc.EmbeddedDriver version 10.11.1.1) then the pom.xml executes the database script successfully and I end up with a database and 3 populated tables.

Any insights, what might cause of this anomalous behavior?

Thanks in advance.
 
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic