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

    Join Date
    Jan 2011
    Posts
    8
    Rep Power
    0

    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
    sqlitejdbc-v056.jar
    sqlite_jni linux x86 (32bit) v1.tar.bz2

    I set path in bash-profile file like:
    PATH=$PATH:/usr/java/jdk1.5.0_22/bin:$PATH:/usr/local/lib/sqlite.jar:$PATH:/usr/local/lib/sqlitejdbc-v056.jar:$PATH:/usr/local/lib/libsqlite_jni.so
    export PATH

    How to solve this error?


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

    Join Date
    Jun 2003
    Posts
    14,436
    Rep Power
    4539
    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
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester

IMN logo majestic logo threadwatch logo seochat tools logo