Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » Deploying Databases and Applications » Deploying client applications

Connection information Next Page

Deploying JDBC clients


You must install a Java Runtime Environment to use JDBC.

You may need to define the JAVA_HOME environment variable, if it has not already been defined, so that the database server can locate the Java VM. The JAVA_HOME or JAVAHOME environment variables are commonly created when installing a Java VM. This environment variable should point to the root directory of your Java VM.

The database server searches for the Java VM in the following order:

  1. Check the java_location database option.

  2. Check the JAVA_HOME environment variable.

  3. Check the JAVAHOME environment variable.

  4. Check the path.

  5. If these searches fail, then the database server fails to load the Java VM.

If the JAVAHOME environment variable is defined and the client computer has JAVA_HOME already defined, the server uses JAVA_HOME.

In addition to a Java Runtime Environment, each JDBC client requires the iAnywhere JDBC driver or jConnect.

To deploy the iAnywhere JDBC driver, you must deploy the following files:

For a version of the jConnect software and the jConnect documentation, see [external link] http://www.sybase.com/products/informationmanagement/softwaredeveloperkit/jconnect.

Your Java application needs a URL to connect to the database. This URL specifies the driver, the computer to use, and the port on which the database server is listening.

For more information on URLs, see Supplying a URL to the driver.