Setting the CLASSPATH environment variable to execute ITNCM - Base API programs
A subset of the jar files installed by the client installation are required to successfully run ITNCM - Base API programs. This subset of jar files must be included in the CLASSPATH environment variable when using the ITNCM - Base API.
You can also copy this subset of jar files from the ITNCM - Base server, in /opt/ IBM/tivoli/netcool/ncm/lib in a "standard" installation. Depending on the details of the program, not all the jar files may be required. The details of setting up your CLASSPATH environment variable will vary with your development and runtime environment and are not covered here. Note that it is generally a good idea to specifically set your CLASSPATH environment variable, if possible, rather than simply adding to an existing CLASSPATH environment variable to avoid library conflicts.
You should add to the CLASSPATH environment variable all of the jar files that reside in the lib directory that are extracted when executing the client installer.
If you are not using the API client in a J2EE environment, or if you are using it in a WebSphere J2EE environment of the same version used by ITNCM-Base, you can also include com.ibm.ws.admin.client_7.0.0.jar in the CLASSPATH to avoid misleading serialization exceptions in the case that an EJBException is returned from the server. If you are running the client from any other J2EE environment, you will need to find a jar file that include EJBException and that is compatible with your J2EE environment.