LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2011, 06:24 AM   #1
sridaran
LQ Newbie
 
Registered: Jan 2011
Posts: 19

Rep: Reputation: 0
Installation Problem


Hi
I need to install a tool in Redhat Linux which needs PHP, Java and Sqlite. Here PHP is the front-end and Java is the backend server with Sqlite database. I set everything and completed installation almost. Now server started, I can able to access front-end very well. But some php files are not working properly which are java database related 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 downloaded sqlite_jni linux amd64 (64bit) v1.tar file and sqlitejdbc-v056 file. Can anyone please tell me how to work with these two files i.e where to place these files and how to set path. I am new to Linux and Java.


R.Sridaran
 
Old 01-07-2011, 08:20 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by sridaran View Post
Hi
I need to install a tool in Redhat Linux which needs PHP, Java and Sqlite. Here PHP is the front-end and Java is the backend server with Sqlite database. I set everything and completed installation almost. Now server started, I can able to access front-end very well. But some php files are not working properly which are java database related 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 downloaded sqlite_jni linux amd64 (64bit) v1.tar file and sqlitejdbc-v056 file. Can anyone please tell me how to work with these two files i.e where to place these files and how to set path. I am new to Linux and Java.
You need to add the file to the Java library path. There are many documents that you can easily find on Google, explaining how to do this. For example, you can either specify the class library location when you're calling the module. Try copying the file into /usr/lib, or (better), edit the /etc/ld.so.conf file to add the directory with your new Java library, then run (as root) "ldconfig".
 
1 members found this post helpful.
Old 01-07-2011, 09:16 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 'yum install javasqlite' will provide :
/usr/lib/javasqlite/libsqlite_jni.so
/usr/lib/javasqlite/sqlite.jar

Could that be, what you are looking for ?

'javasqlite' is in the epel.repo https://fedoraproject.org/wiki/EPEL
https://fedoraproject.org/wiki/EPEL/FAQ#howtouse

..
 
Old 01-12-2011, 05:34 AM   #4
sridaran
LQ Newbie
 
Registered: Jan 2011
Posts: 19

Original Poster
Rep: Reputation: 0
Error on Java-Sqlite again

Thank you very much. I downloaded sqlitejdbc-v056.jar, sqlite_jni linux x86 (32bit) v1.tar.bz2 files and copied inside /usr/local/lib. In bash-profile file I set path 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

I restarted the server and got the following error:

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)

How to solve this error?


R.Sridaran
 
Old 01-12-2011, 07:00 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
I downloaded sqlitejdbc-v056.jar, sqlite_jni linux x86 (32bit) v1.tar.bz2
It's a wrong version, meant for a later Linux.


The correct package : See post # 3 : javasqlite , el.5
wget http://download.fedora.redhat.com/pu...el5.1.i386.rpm
> > javasqlite-20090430-1.el5.1.i386.rpm

..
 
1 members found this post helpful.
Old 01-13-2011, 05:50 AM   #6
sridaran
LQ Newbie
 
Registered: Jan 2011
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you very much. I downloaded javasqlite-20090430-1.el5.1.i386.rpm from the url you mentioned. After installing I got libsqlite_jni.so and sqlite.jar file in /usr/lib folder. I copied to /usr/local/lib folder and set path in my bash-profile file. Now "no sqlite_jni in java.library.path" error was solved and am getting only the following error:

[root@localhost imailtract_java3]# 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 tried
sqlitejdbc-v056.jar
sqlitejdbc-v054.jar
sqlitejdbc-v056-pure.jar
sqlitejdbc-v055-pure.jar
sqlite-jdbc-3.7.2.jar

Can you please tell me a jdbc jar file to solve this error.


R.Sridaran
 
Old 01-13-2011, 08:06 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
javasqlite-20090430-1.el5.1.i386.rpm provides :
/usr/lib/javasqlite/libsqlite_jni.so
/usr/lib/javasqlite/sqlite.jar

.. which is what you get with a normal install method : yum or rpm commands :
I.e. # rpm -Uvh javasqlite-20090430-1.el5.1.i386.rpm


The default location for the most '.jar' files is /usr/share/java/,
which is already in the standard 'java' search path.
That's where I would put the sqlitejdbc-vXX.jar .
And then create a link : 1) cd /usr/share/java/ && su ;
2) ln -s sqlitejdbc-vXX.jar sqlitejdbc.jar

But why not tell, which tool, you are trying to use.
May be I can find the correct solution for the sqlitejdbc.jar ?
..
 
1 members found this post helpful.
Old 01-17-2011, 06:45 AM   #8
sridaran
LQ Newbie
 
Registered: Jan 2011
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you very much. Actually my tool is about IMailTract, Email Newsletter and Campaign Management application. IMailTract can handle huge volumes of personalized email, track responses to mail (opened, clicked, Lead/Sale) and allow advertiser to run campaigns based on response. For installing this tool we need Linux OS, Java, PHP, Sqlite. In this PHP is the front-end, Java is the back-end server with Sqlite database. I installed everything. Server also started running.Front-end is working fine.Database connected with front-end(PHP) since I can able to see folders that I create in database as drop down list in the front-end. But if I create any folders in front-end using create button this error(SQLException, Unsatisfied Link Error) is coming. Also for campaign creation, if I click create-campaign button it is asking campaign name. After giving the name it is displaying message "campaign created successfully". But no campaigns in the list. I thought this is the connection problem between Java and Sqlite.

I followed your last instruction also but still the same error exists. Actually I don't know Linux, Java. Also this tool was used five years back with old versions. Now I am using new version softwares. By modifying configuration files and referring the net I completed this installation upto this level. Only this error needs to be solved. Please tell me the suitable sqlitejdbc.jar file.


R.Sridaran
 
Old 01-19-2011, 10:58 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
.. my tool is about IMailTract, Email Newsletter and Campaign Management ..
Please provide direct links to the application(s) in question.

..
 
Old 01-19-2011, 11:40 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by sridaran View Post
Thank you very much. Actually my tool is about IMailTract, Email Newsletter and Campaign Management application. IMailTract can handle huge volumes of personalized email, track responses to mail (opened, clicked, Lead/Sale) and allow advertiser to run campaigns based on response. For installing this tool we need Linux OS, Java, PHP, Sqlite. In this PHP is the front-end, Java is the back-end server with Sqlite database. I installed everything. Server also started running.Front-end is working fine.Database connected with front-end(PHP) since I can able to see folders that I create in database as drop down list in the front-end. But if I create any folders in front-end using create button this error(SQLException, Unsatisfied Link Error) is coming. Also for campaign creation, if I click create-campaign button it is asking campaign name. After giving the name it is displaying message "campaign created successfully". But no campaigns in the list. I thought this is the connection problem between Java and Sqlite.

I followed your last instruction also but still the same error exists. Actually I don't know Linux, Java. Also this tool was used five years back with old versions. Now I am using new version softwares. By modifying configuration files and referring the net I completed this installation upto this level. Only this error needs to be solved. Please tell me the suitable sqlitejdbc.jar file.
R.Sridaran
Sorry...I, for one, will not help someone send spam. Thread reported.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PXE installation problem - can only select A series packages for installation Nylex Slackware 4 08-19-2010 02:15 PM
Installation of Binutils(configure:error:installation or configuration problem:C ...) h_r0019 Linux From Scratch 1 05-05-2007 07:40 AM
Redhat/Linux Installation Support??? Is It Red hat installation problem??? wanux Red Hat 1 08-01-2006 10:32 PM
LiLo Installation problem ?and (GNOME and KDE problem) hitesh_linux Linux - Software 1 01-01-2002 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration