Hi,
I need get data from Sybase server. I'v copy some files from Sybase client
into my $HOME/bin:
-rw-r--r-- 1 vidas users 99067 2006-04-08 22:03 jodbc.jar
drwxr-xr-x 3 vidas users 4096 2006-04-03 21:58 libas
-rw-r--r-- 2 vidas users 546696 2006-04-09 10:42 libdbjodbc9.so
-rw-r--r-- 2 vidas users 546696 2006-04-09 10:42 libdbjodbc9.so.1
-rw-r--r-- 2 vidas users 682356 2006-04-08 22:04 libdbodbc9_r.so
-rw-r--r-- 2 vidas users 682356 2006-04-08 22:04 libdbodbc9_r.so.1
-rw-r--r-- 1 vidas users 749 2006-04-09 14:08 saikas2db.class
-rw-r--r-- 1 vidas users 434 2006-04-09 10:08 saikas2db.java

Then run program:
java -cp .:./jodbc.jar saikas2db

import java.sql.*;
public class saikas2db {
public static void main(String args[]) {
try {
=======here get error>>>>>> Class.forName( "ianywhere.ml.jdbcodbc.IDriver" );
} catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
}
try {
Connection conn = DriverManager.getConnection( "jdbcdbc:driver=./libdbodbc9_r.so"+
";uid=DBA;pwd=SQL;dbf=192.168.2.3/asademo.db" );
} catch (Exception ex) {
ex.printStackTrace();
System.exit(2);
}
}
}
Exception in thread "main" java.lang.UnsatisfiedLinkError:
Can't find library dbjodbc9 (libdbjodbc9.so)
in sun.boot.library.path or java.library.path
sun.boot.library.path=/usr/lib/java/bin/../jre/bin
java.library.path=/usr/lib/java/bin/../jre/bin:/usr/lib/java/jre/bin/classic:/usr/lib/java/jre/bin:/usr/lib
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :2020)
at java.lang.Runtime.loadLibrary0(Runtime.java:824)
at java.lang.System.loadLibrary(System.java:908)
at ianywhere.ml.jdbcodbc.IDriver.try_load(IDriver.jav a:248)
at ianywhere.ml.jdbcodbc.IDriver.<clinit>(IDriver.jav a:217)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:180)
at saikas2db.main(saikas2db.java:6)
Is it posible have all in $HOME/bin directory?
Regards,
Vidas