Running the sample applets  Sample code

Appendix B: jConnect Sample Programs

Running the sample programs with Adaptive Server Anywhere

All of the sample programs are compatible with Adaptive Server, but only a limited number are compatible with Adaptive Server Anywhere. Refer to index.html in the sample2 subdirectory for a current list of the sample programs that are compatible with Adaptive Server Anywhere.

To run the sample programs that are available for Adaptive Server Anywhere, you must install the pubs2_any.sql script on your Adaptive Server Anywhere server. This script is located in the sample2 subdirectory.

For Windows, go to DOS command window and enter:

java IsqlApp -U dba -P password 
 -S jdbc:sybase:Tds:[hostname]:[port] 
 -I %JDBC_HOME%\sample2\pubs2_any.sql -c go

For UNIX, enter:

java IsqlApp -U dba -P password 
 -S jdbc:sybase:Tds:[hostname]:[port] 
 -I $JDBC_HOME/sample2/pubs2_any.sql -c go




Copyright © 2003. Sybase Inc. All rights reserved. Sample code

View this book as PDF