WARNING: you seem to not be using the Xerial SQLite driver

1.8k views Asked by At

I used libs

    <dependency>
        <groupId>org.xerial</groupId>
        <artifactId>sqlite-jdbc</artifactId>
        <version>3.8.6</version>
    </dependency>
    <dependency>
        <groupId>com.j256.ormlite</groupId>
        <artifactId>ormlite-core</artifactId>
        <version>4.48</version>
    </dependency>
    <dependency>
        <groupId>com.j256.ormlite</groupId>
        <artifactId>ormlite-jdbc</artifactId>
        <version>4.48</version>
    </dependency>

Run a main class shows too many errors:

WARNING: you seem to not be using the Xerial SQLite driver

How to disable it

help me

2

There are 2 answers

0
Utku Özdemir On

You can use an older version of sqlite-jdbc to avoid this incompatibility:

<dependency>
   <groupId>org.xerial</groupId>
   <artifactId>sqlite-jdbc</artifactId>
   <version>3.7.2</version>
</dependency>

Or just add the dependency which got removed in 3.8 versions, therefore causing error:

<dependency>
    <groupId>org.xerial</groupId>
    <artifactId>sqlite-jdbc</artifactId>
    <version>3.8.10.1</version>
</dependency>
<dependency>
    <groupId>org.xerial.thirdparty</groupId>
    <artifactId>nestedvm</artifactId>
    <version>1.0</version>
</dependency>
0
Yaroslav On

OrmLite checks for existence of org.ibex.nestedvm.Interpreter class, which is not present in newer versions of Xerial driver. But you can simply create that class in your project, just empty class with no members to suppress the warning.

UPD: Check was removed though not released yet.