Error Messages When Compiling Java-Language Adapters

This section describes common errors you may experience when compiling Java-language components.

Problem

When you compile, you see one or more error messages similar to the following:

MapPublisher1.java:1: package sybase.com.c8.toolbox does not exist
import com.sybase.c8.toolbox.Toolbox;
MapPublisher1.java:33: cannot find symbol
symbol : variable Publisher
location: class MapPublisher1
publisher.publishRow(data);

The most likely cause is that your CLASSPATH environment variable is not set properly.

Make sure that you include the following files in your CLASSPATH:

C:\Program Files\SybaseC8\Server\adapters\sybasec8-jms-adapters.jar
C:\Program Files\SybaseC8\Server\sdk\java5\sybasec8-sdk-java.jar