Для подключения используется jconnect (jconn3.jar).
import com.sybase.jdbc3.jdbc.SybDriver;
import java.sql.Connection;
import java.sql.DriverManager;
.....
Class c=Class.forName("com.sybase.jdbc3.jdbc.SybDriver");
sybDriver = (SybDriver)c.newInstance();
DriverManager.registerDriver(sybDriver);
connection = DriverManager.getConnection("jdbc:sybase:Tds:10.140.1.10:2640/SERVICENAME=mydb", "username", "password");
.......
import com.sybase.jdbc3.jdbc.SybDriver;
import java.sql.Connection;
import java.sql.DriverManager;
.....
Class c=Class.forName("com.sybase.jdbc3.jdbc.SybDriver");
sybDriver = (SybDriver)c.newInstance();
DriverManager.registerDriver(sybDriver);
connection = DriverManager.getConnection("jdbc:sybase:Tds:10.140.1.10:2640/SERVICENAME=mydb", "username", "password");
.......