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 Problem

    Hi
    I need to install a tool in Redhat Linux which needs Java, PHP and Sqlite database. I set everything and completed installation almost. But some java database related files not working and giving error message as:

    [root@localhost mail_java3]# Unable to load sqlite: java.lang.UnsatisfiedLinkError: no sqlite_jni in java.library.path
    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 as:
    PATH=$PATH:/usr/java/jdk1.5.0_22/bin:$PATH:/lib/sqlite.jar:$PATH:/usr/lib/libsqlite_jni.la
    export PATH

    Softwares used:
    jdk-1_5_0_22-linux-i586.rpm
    sqlite-autoconf-3070400.tar.gz
    javasqlite-20100727.tar.gz


    What is sqlite_jni file? Where to get it? How to solve this UnsatisfiedLinkError. Please help me.




    R.Sridaran

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    PATH has nothing to do with java.library.path. SD_LIBRARY_PATH does though.

Similar Threads

  1. SQLite Connection with java
    By avirit1983 in forum NetBeans
    Replies: 2
    Last Post: 12-15-2010, 12:12 PM
  2. Problem finding SQLite JDBC driver
    By PrinceSendai in forum JDBC
    Replies: 9
    Last Post: 08-09-2010, 01:24 AM
  3. SQLite Problem
    By flaquitqm in forum JDBC
    Replies: 5
    Last Post: 01-29-2010, 01:12 AM
  4. SQLite Result Set problem
    By nikosa in forum JDBC
    Replies: 4
    Last Post: 01-25-2010, 07:53 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
  •