Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 960
yali Avatar asked Sep 18 '25 12:09

yali


1 Answers

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.

like image 156
Thorbjørn Ravn Andersen Avatar answered Sep 20 '25 01:09

Thorbjørn Ravn Andersen