yali
yali

Reputation: 1118

Where can I find derby.jar in JDK 8?

I am reading about JDBC in OCP Java book, and in this book, it explains about JavaDB and before running my code, I need to add derby.jar file to my classpath.

java −cp "/my/jdk/home/db/lib/derby.jar:." SetupDerbyDatabase

OS: Ubuntu 19.04

Java version: 8

Upvotes: 4

Views: 3025

Answers (3)

karan khaswal
karan khaswal

Reputation: 1

if you're using netbeans then try this path C:\Program Files\glassfish-4.1\javadb\lib

you'll found derby client name jarfile for jdbc connection

Upvotes: 0

The JDK is being slimmed down and derby is no longer part of the distribution.

You must download the jar manually and then use the path to the downloaded jar instead of the one you use today.

Upvotes: 6

mithz
mithz

Reputation: 24

You can download the required version from https://db.apache.org/derby/derby_downloads.html and then save it under this location. /my/jdk/home/db/lib/

Upvotes: -2

Related Questions