Show TOC Start of Content Area

Procedure documentation Running CBS Tool on Windows Platforms  Locate the document in its SAP Library structure

On Windows platforms, the CBS tool is launched by means of a batch file. The main purpose of the batch file is to construct the class path for this Java application. In this context, two cases are distinguished:

·         Jars are used that are stored under the installation folder of the SAP NetWeaver Developer Studio.

·         Jars from a separate directory are used.

Procedure

Jars Under SAP NetWeaver Developer Studio Installation Folder Are Used

All jars that are required to run the CBS tool are located underneath <ROOTPATH>\eclipse\tools\lib. You have to set the environment variable SAPDEVSTUDIOHOME before you launch the CBS tool using the batch file cbstool_nw.bat.

Note

The environment variable SAPDEVSTUDIOHOME must point to <ROOTPATH>\eclipse\tools\lib. If this environment variable is not set correctly, the CBS tool startup fails. Additionally, you must set the environment variable JAVA_HOME. JAVA_HOME must point to the installation folder of a Java SDK installation.

Example

Assume that the root installation path of the SAP NetWeaver Developer Studio is C:\Program Files\SAPJDT. Then set SAPDEVSTUDIOHOME to C:\Program Files\SAPJDT\eclipse.

...

       1.      To launch the CBS tool, open a DOS prompt.

       2.      Navigate to the directory <ROOTPATH>\eclipse\tools\cbstool.

       3.      Enter cbstool_nw.bat and choose Enter.

This starts the CBS tool in interactive mode. If you pass command line arguments to the batch file, they are forwarded to the CBS tool. If the CBS tool is launched with command line parameters, it runs in batch mode.

Jars from a Separate Directory Are Used

You may need to run the CBS tool on a computer where no SAP NetWeaver Developer Studio has been installed. To copy the required files to the target computer, proceed as described below. It is assumed in this context that the SAP NetWeaver Developer Studio has been installed on a computer running on a Windows operating system.

...

       1.      Open a DOS prompt.

       2.      Navigate to the directory <ROOTPATH>\eclipse\tools\cbstool.

       3.      Execute the batch file copyjars.bat from that directory.

This creates two directories named cbstool_win and cbstool_unix. In both directories, there is a subdirectory lib that contains the required jars. In directory cbstool_win, there is a batch file cbstool.bat to launch the CBS tool. The directory cbstool_unix contains the shell script cbstool.sh to launch the CBS tool.

       4.      Depending on the operating system of the target computer, copy the required directory to the target:

       Windows: cbstool_win

       Linux/Unix: cbstool_unix

       5.      On the target machine, set the environment variable CBSTOOLHOME before you launch the batch file cbstool.bat. The environment variable must point to the directory lib that contains the required jar files.

Example

If the directory lib is located in C:\cbstool\, then CBSTOOLHOME must be set to C:\cbstool_win\lib.

       6.      In addition, set the environment variable JAVA_HOME to a Java SDK installation folder.

       7.      Open a DOS prompt and navigate to the directory where the batch file cbstool.bat is located.

       8.      Enter cbstool.bat and choose Enter.

The CBS tool starts in interactive mode. If you pass command line arguments to the batch file, they are forwarded to the CBS tool. If the CBS tool is launched with command line parameters, it runs in batch mode.

End of Content Area