Test the jConnect installation

After jConnect is installed, test the installation by running the Version program.

NoteThe Version program connects to a demonstration database that Sybase has made available on the Internet. You must have Internet access to run the Version program successfully, or explicitly run it with [-U username] [-P password] [-S servername] commands to point it to your database.

StepsTesting the installation

  1. From the DOS prompt for Windows, or at a UNIX or Linux prompt, change to the JDBC_HOME directory.

  2. Verify that your CLASSPATH variable is set for running the sample programs (see “Setting the CLASSPATH” for details) and enter the following text:

    java sample2.SybSample Version
    

    A SybSample window appears. At the top of the window, the Running Sybase Sample text box displays the source code for Version as the program runs. The middle text box (Sample Output) should display version information. For example:

    Using JDBC driver version 6.05
    jConnect (TM) for JDBC(TM)/6.05...
    
  3. Depending on the output, do one of the following:

  4. When you have verified that your installation was successful, click Close to exit the SybSample window.