Loading the JDBC driver

When a Java applet or application loads a JDBC driver, the code is dynamically retrieved from the network. Loading the Sybase JDBC driver requires a simple line of code:

Class.forName("com.sybase.jdbc.SybDriver");

JConnect requires this hierarchy of classes (com\sybase\jdbc\) to be placed in the same subdirectory as the applet. For Java applications, this set of classes must be in the CLASSPATH environment variable.