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 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

02-07-2011, 08:20 PM

codesmuggler

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".