Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Problem with JDBC driver tomcat 7 and java.library.Path under centos 6

2 posts in General Discussion Last posting was on 2012-08-10 15:24:55.0Z
CHRISTOS Posted on 2012-08-08 04:48:29.0Z
Sender: 7f39.5021eedd.1804289383@sybase.com
From: CHRISTOS
Newsgroups: ianywhere.public.general
Subject: Problem with JDBC driver tomcat 7 and java.library.Path under centos 6
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <5021ef9d.7f56.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 7 Aug 2012 21:48:29 -0700
X-Trace: forums-1-dub 1344401309 172.20.134.41 (7 Aug 2012 21:48:29 -0700)
X-Original-Trace: 7 Aug 2012 21:48:29 -0700, 172.20.134.41
Lines: 36
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:8168
Article PK: 7184

Problem with JDBC driver tomcat 7 and java.library.Path
under centos 6

How to configure ld_library_path or any other configuration
under centos 6 and tomcat 7 to fix the problem?

At what path I must copy the file dbjodbc12.so? What is the
correct configuration?

How I can configure the java.library.path under under centos
6 and tomcat 7 in order to fix the problem?

Please help me. If you have any answers please also email me
to stavrinc@gmail.com

Thanks in advance

The connection string is as follows:

"jdbc:ianywhere:driver=libdbodbc12.so;ENG=host;DBN=database"
But when running the program, I get the following exception
(with the relevant stack trace) -
Exception in thread "main" java.lang.UnsatisfiedLinkError:
no dbjodbc12 in java.library.path
at
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at
java.lang.Runtime.loadLibrary0(Runtime.java:823)
at
java.lang.System.loadLibrary(System.java:1030)
at
ianywhere.ml.jdbcodbc.IDriver.try_load(IDriver.java:247)
at
ianywhere.ml.jdbcodbc.IDriver.<clinit>(IDriver.java:216)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)


David Kerber <ns_dkerber Posted on 2012-08-10 15:24:55.0Z
From: David Kerber <ns_dkerber@ns_warrenrogersassociates.com>
Newsgroups: ianywhere.public.general
Subject: Re: Problem with JDBC driver tomcat 7 and java.library.Path under centos 6
Message-ID: <MPG.2a8ef1d051efac7198973c@forums.sybase.com>
References: <5021ef9d.7f56.1681692777@sybase.com>
Organization: Warren Rogers Associates
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/3.0.4
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 10 Aug 2012 08:24:55 -0700
X-Trace: forums-1-dub 1344612295 172.20.134.152 (10 Aug 2012 08:24:55 -0700)
X-Original-Trace: 10 Aug 2012 08:24:55 -0700, vip152.sybase.com
Lines: 45
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:8170
Article PK: 7182

You'll probably get a better response if you post this in the
sybase.public.sqlanywhere.general forum.



In article <5021ef9d.7f56.1681692777@sybase.com>, CHRISTOS says...

>
> Problem with JDBC driver tomcat 7 and java.library.Path
> under centos 6
>
> How to configure ld_library_path or any other configuration
> under centos 6 and tomcat 7 to fix the problem?
>
> At what path I must copy the file dbjodbc12.so? What is the
> correct configuration?
>
> How I can configure the java.library.path under under centos
> 6 and tomcat 7 in order to fix the problem?
>
> Please help me. If you have any answers please also email me
> to stavrinc@gmail.com
>
> Thanks in advance
>
> The connection string is as follows:
>
> "jdbc:ianywhere:driver=libdbodbc12.so;ENG=host;DBN=database"
> But when running the program, I get the following exception
> (with the relevant stack trace) -
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> no dbjodbc12 in java.library.path
> at
> java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
> at
> java.lang.Runtime.loadLibrary0(Runtime.java:823)
> at
> java.lang.System.loadLibrary(System.java:1030)
> at
> ianywhere.ml.jdbcodbc.IDriver.try_load(IDriver.java:247)
> at
> ianywhere.ml.jdbcodbc.IDriver.<clinit>(IDriver.java:216)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:169)