Results 1 to 2 of 2
  1. #1
    sridaran is offline Member
    Join Date
    Dec 2010
    Posts
    5
    Rep Power
    0

    Default 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.ListD atabase.createNewListDatabase(ListDatabase.java:52 4)
    at com.attract.imail3.datamodel.sqlite.listmngr.ListD atabase.serviceCREATELIST(ListDatabase.java:571)
    at com.attract.imail3.IMT3Server.serviceDirect(IMT3Se rver.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
    codesmuggler is offline Member
    Join Date
    Feb 2011
    Posts
    30
    Rep Power
    0

    Default

    Well, as you see libc.so.6: version `GLIBC_2.7' not found you have to:
    install libc.so.6 (standard C library)
    or
    if you have it already installed - link to it where is needed: /lib/i686/nosegneg/libc.so.6 .

    If you were using Ubuntu - just type in console: "sudo apt-get install libc6".

Similar Threads

  1. Java Sqlite Driver Installation
    By sridaran in forum JDBC
    Replies: 0
    Last Post: 01-04-2011, 07:02 AM
  2. Java Sqlite Connection Problem
    By sridaran in forum JDBC
    Replies: 1
    Last Post: 12-30-2010, 06:53 PM
  3. SQLite Connection with java
    By avirit1983 in forum NetBeans
    Replies: 2
    Last Post: 12-15-2010, 12:12 PM
  4. Trying to get JAVA to work with SQLite
    By mark8569 in forum JDBC
    Replies: 3
    Last Post: 04-25-2009, 01:42 AM
  5. JAVA and SQLite
    By mark8569 in forum Advanced Java
    Replies: 0
    Last Post: 03-20-2008, 06:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •