How to configure a project to use the latest version of Derby DB (10.4)?

Every time I try to start a small application using DB Derby, I get the following error message:

Message: The database in / path / to / db / TheDB is not compatible with the current software version. The database was created or updated with version 10.4.

I added the library from Netbeans and still have the same problem.
I'm not sure what to do here.

+3
source share
2 answers

The version included with Netbeans may be old (Derby 10.2 from NB 6.0). If you added Derby through the project properties and added the "Library", then you probably had an old version.

, → . "Java DB Driver". , 10.4.

JAR , NB, , / JAR, ...

+3

, , , derby.jar .
:

cp/opt/Apache/derbyinstall/lib/ derby.jar//// dist/lib/

... . : Netbeans, , Netbeans jar. , .:)

0

Source: https://habr.com/ru/post/1697397/


All Articles