1. Taro L. Saito
  2. sqlite-jdbc
Issue #26 new

Support openjdk7 in Mac OS X

Taro L. Saito
repo owner created an issue

OpenJDK7 in Mac uses different naming scheme for os.arch and mapLibraryname.

The following fixes are needed:

os.arch universal or amd64 -> x86_64

mapLibraryName .jnilib -> .dylib

Comments (1)

  1. Greg Rosensteel

    I think there is an issue with running this code on Mac OSX 10.7.5. See my post here:

    http://serpdev.wordpress.com/2012/07/21/fast-androidsqlite-unit-testing-with-robolectric/comment-page-1/#comment-49

    Basically there is a ClassNotFoundException inside NestedDb when it tries to load the 'org.sqlite.SQLite' class. NestedDB.java line 59:

    // start the nestedvm runtime try { rt = (Runtime) Class.forName("org.sqlite.SQLite").newInstance(); rt.start(); } catch (Exception e) { throw new CausedSQLException(e); }

    The code works great on a JDK 6. Not sure what changed going to 7.

    BTW my os.name=Mac OS X and os.arch=x86_64

  2. Log in to comment