
sqlite-jdbc - issue #34
SQLite always being loaded in pure Java mode on Mac OS 10.8 & Oracle JDK 1.7
What steps will reproduce the problem?
- Run "mvn test -Dtest=org.sqlite.TransactionTest" on Mac OS 10.8 with OpenJDK 1.7
- Observe the "running in pure-java mode" debug message
- Work around it by running "mvn test -Dtest=org.sqlite.TransactionTest -Dorg.sqlite.lib.name=libsqlitejdbc.jnilib"
What is the expected output? What do you see instead?
We should run in native mode by default. The problem is that System.mapLibraryName("sqlitejdbc") is returning "sqlitejdbc.dylib", but the packed library is "sqlitejdbc.jnilib". It appears that at some point the OpenJDK people changed the suffix that mapLibraryName returns (see another observation of this at http://code.google.com/p/snappy-java/issues/detail?id=39 ).
What version of the product are you using? On what operating system?
Jar straight from maven: sqlite-jdbc-3.7.2.jar
JDK: java version "1.7.0_09" Java(TM) SE Runtime Environment (build 1.7.0_09-b05) Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
MacBook Pro Retina, Mid 2012 Processor 2.6 GHz Intel Core i7 Memory 16 GB 1600 MHz DDR3 Software OS X 10.8.2 (12C3006)
Please provide any additional information below.
Status: New
Labels:
Type-Defect
Priority-Medium
AffectedVersion-3.7.x
FixedVersion-NA