Testing SAP jConnect Installation

After SAP jConnect is installed, run the Version program to test the SAP jConnect installation.

Note: The Version program connects to a demonstration database that SAP 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.
  1. From the DOS or UNIX prompt, change to JDBC_HOME.
  2. Verify that CLASSPATH is set for running the sample programs and enter 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. Using JDBC driver version 16.0 jConnect (TM) for JDBC(TM)/16.0...
  3. The output can be one of these:
    • If the previous message appears in the Sample Output text box, you have successfully installed SAP jConnect.
    • If you get the previous message but the source code for Version does not appear in the Running Sample text box, and the Status text box at the bottom of the window shows the following message, it means that you have successfully installed SAP jConnect but probably did not enter the command to run the Version program from the sample2 directory under JDBC_HOME:
      java.io.FileNotFoundException: Version.java
    • If the SybSample window does not appear and you get the error message, check CLASSPATH to verify that it is set correctly:
      Can’t find class sample2.SybSample
    • If the SybSample window does not come up, and you get one of the error messages, make sure that your path includes the bin subdirectory of your JDK home directory:
      “Name specified is not recognized as an internal
      or external command”
      “Bad command or file name”
  4. Click Close to exit the SybSample window, when you have verified that your installation is successful.