1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2011
    Rep Power

    Java Sqlite Connection in Linux

    I am getting the following connection error between Java and Sqlite in Redhat Linux OS:

    Unable to load sqlite: java.lang.UnsatisfiedLinkError: /usr/local/lib/libsqlite_jni.so: /lib/i686/nosegneg/libc.so.6: version `GLIBC_2.7' not found (required by /usr/local/lib/libsqlite_jni.so)
    java.sql.SQLException: java.lang.UnsatisfiedLinkError: open
    at SQLite.JDBCDriver.connect(JDBCDriver.java:61)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:193)
    at com.attract.imail3.datamodel.sqlite.listmngr.ListDatabase.createNewListDatabase(ListDatabase.java:52 4)
    at com.attract.imail3.datamodel.sqlite.listmngr.ListDatabase.serviceCREATELIST(ListDatabase.java:571)
    at com.attract.imail3.IMT3Server.serviceDirect(IMT3Server.java:248)
    at com.attract.util.jnetdaemon.JDaemonController.main(JDaemonController.java:142)

    I am using:
    Sqlite version 3.7.4
    Java Version 1.5.0_22
    sqlite_jni linux x86 (32bit) v1.tar.bz2

    I set path in bash-profile file like:
    export PATH

    How to solve this error?

  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Rep Power
    You either have a very old version of redhat or an old version of the sqlite jdbc drivers. glibc is v2.12 on my Fedora 14 system.
    Doug G
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton

IMN logo majestic logo threadwatch logo seochat tools logo