After jConnect is installed, test the installation by running the Version program.
The 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.
From the DOS prompt for Windows, or at a UNIX or Linux prompt, change to the JDBC_HOME directory.
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...
Depending on the output, do one of the following:
If the previous message appears in the Sample Output text box, you have successfully installed jConnect.
If you get the previous message but the source code for Version does not appear in the Running Sybase Sample text box, and the Status text box at the bottom of the window shows a message like the following, you successfully installed 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 following error message, check your CLASSPATH to verify that it is set correctly:
Can’t find class sample2.SybSample
Using Windows, if the SybSample window does not come up, and you get one of the following 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” (Windows NT)
“Bad command or file name” (Windows 95)
When you have verified that your installation was successful, click Close to exit the SybSample window.