Skip to content
Advertisement

hsqldb and jdk8 compatibility [closed]

I try to use org.hsqldb.hsqldb in my Maven project. The requirement of the client is to use Java 8. The current version of org.hsqldb.hsqldb is 2.6.1, which doesn’t seem to work with Java 8. How can I observe the version of HSQLDB that compiles with Java 8?

Advertisement

Answer

First read the release notes for hsqldb:

21 March 2021 - version 2.6.0
-- version 2.6.0 jar requires JRE 11 or later - tested up to Java 16 RC
-- version 2.6.0 alternative jar requires JRE 8 or later

The documentation clearly states that 2.6.0 needs an alternative jar to work with jdk8.

Inpect the hsqldb maven repo to verify that there is an alternative jar provided for jdk8: hsqldb-2.6.1-jdk8.jar

To import it with maven, you need to use a classifier

<dependency>
    <groupId>org.hsqldb</groupId>
    <artifactId>hsqldb</artifactId>
    <version>2.6.1</version>
    <classifier>jdk8</classifier>
</dependency>
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement