Fixing Class Not Found Errors
This topic describes how to fix class not found errors when you preview a report in Microsoft Word. The guidelines for fixing class not found errors, when previewing reports in Microsoft Word, are as follows:
-
Make sure no spaces or new line characters exist after the following string:
-Xbootclasspath/a:
For example:
set_JAVA_OPTIONS=-Xbootclasspath/a:C:\81DQSSIA\client\classes…
-
To examine the syntax, turn off word wrapping in the editor you are using so that the editor displays the following code on a single line:
set_JAVA_OPTIONS
If you turn off word wrapping, then you must include three separate lines in your batch file.
-
Make sure the path to Microsoft Word that the batch file references is correct. You can search for winword.exe from
C:\Program Files
to locate the path. -
The
%1
in the batch file is an argument that represents a document that you typically open in Microsoft Word (RTF files). -
The following system environment variable prevents you from previewing reports in the Siebel client. Do not use it:
set _JAVA_OPTIONS
The following procedure shows how to fix an error that might occur when you preview a report in Microsoft Word that uses a predefined report template file. To fix the error, you create a custom batch file that loads the required template libraries before Microsoft Word opens the report template file. You replace the explicit drive and folder locations in this batch file with the drive and locations that your computer uses according to where you installed the Siebel Web Client. You are not required to associate a .doc extension with this batch file.
To fix class not found errors when previewing reports in Microsoft Word
-
Navigate to the following directory on the computer where you installed the Siebel client:
C:\Program Files
-
Create a new file named
MSWordForBIPub.bat
. -
Add the following code to the file you created in Step 2:
echo %1 set _JAVA_OPTIONS=-Xbootclasspath/a: C:\81DQSSIA\client\classes\SiebelXMLP.jar;C:\81DQSSIA\client\classes\siebel.jar;C:\ 81DQSSIA\client\classes\XSLFunctions.jar;C:\81DQSSIA\client\classes\SiebelCustomXMLP.jar; C:\81DQSSIA\client\classes\SiebelCustomXMLP_SIA.jar "C:\Program Files\microsoft office\Office\Winword.exe" %1
This code sets the
_JAVA_OPTIONS
environment variable and then opens Microsoft Word. -
Create a shortcut to the
MSWordForBIPub.bat
batch file and move it to your desktop. -
If necessary, make sure that this batch file always runs when you open a predefined report template file, then associate the RTF files with the .bat file:
-
Navigate to the folder that contains the template files in your Siebel client environment. For example, navigate to the following folder:
C:\Siebel\client\XMLP\TEMPLATES
-
Sort the templates files according to Type.
-
Right-click an RTF file, select Open With, and then select a text editor.
-
Click Browse to find the .bat file (on your local machine), and then open it.
-
Make sure the following check box contains a check mark, and then click OK: Always Use the Selected Program to Open This Kind of File.
This step associates the RTF file with the batch file you created in Step 2. The batch file sets an environment variable that Oracle Publisher requires to publish a report in Microsoft Word.
If you double-click the RTF file, then a command prompt window opens. You can also use the desktop shortcut and run the shortcut to the .bat file to test the report preview.
-