How can I connect to a SQLite data source using JDBC on Debian/ARM?

324 Views Asked by At

I'm attempting to port a small Java application to a Debian Linux environment running on an ARM processor (specifically, a Freescale i.MX28 CPU with an ARM926EJ-S core).

The application persists data to a local SQLite database, and has been tested and works on Windows 7/Intel and Ubuntu 14.x/Intel with OpenJDK JRE versions 1.6 - 1.8.

However, on the Debian/ARM machine, it core dumps when it tries to make a connection to the database.

For example, this line, using the xerial jdbc driver:

    ConnectionSource connectionSource = 
        new JdbcConnectionSource("jdbc:sqlite:" + path);

I've tried other drivers, which have similar behaviors, and to my surprise neither the great google machine or SO have any definitive answers - though others are certainly having similar problems.

I don't think it's an issue with SQLite on the ARM itself... I can get a SQLite command prompt and run queries as expected manually.

So what big obvious thing am I overlooking? There's no market for JDBC/SQLite on Debian/ARM? Xerial works great but I'm doing it wrong?

0

There are 0 best solutions below