dleslie 01/05/21 13:05:58
Modified: java/xdocs/sources/xalan faq.xml
Log:
Added info provided by Shane on use of EnvironmentCheck
utility to figure out ClassDefNotFound errors.
Revision Changes Path
1.7 +12 -1 xml-xalan/java/xdocs/sources/xalan/faq.xml
Index: faq.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/faq.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- faq.xml 2001/05/07 15:27:36 1.6
+++ faq.xml 2001/05/21 20:05:54 1.7
@@ -109,7 +109,18 @@
and be sure xalanj1compat.jar is on the classpath at run time (see <link
idref="usagepatterns" anchor="compat">Using the &xslt4j; version 1
API)</link>.</li>
</ol>
- <p>For more information, see <link idref="getstarted"
anchor="classpath">Setting up the system classpath</link>.</p></a>
+ <p>For more information, see <link idref="getstarted"
anchor="classpath">Setting up the system classpath</link>.</p>
+ <p><em>Using the EnvironmentCheck utility:</em> To help diagnose
classpath problems, try running Xalan's environment checking utility, checked
in at
+ xml-xalan/java/src/org/apache/xalan/xslt/EnvironmentCheck.</p>
+ <p>You can run this utility from the command line as follows:</p>
+ <p><code>java org.apache.xalan.xslt.EnvironmentCheck [-out
outFile]</code></p>
+ <p>You can also call this utility from within your application. For
example,</p>
+ <p><code>boolean environmentOK = (new
EnvironmentCheck()).checkEnvironment (yourPrintWriter);</code></p>
+ <p>Be sure to run EnvironmentCheck in the environment where you are
experiencing the problem. For example, if you get a
+ NoClassDefFound error from a command-line application, run
EnvironmentCheck on the command line with exactly the same
+ classpath. If the error occurs inside your Java application (or in a
servlet, etc.), be sure to call the
+ EnvironmentCheck checkEnvironment(...) method from within your running
application.</p>
+ </a>
</faq>
<faq title="Stylesheet validation">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]