On Tue, 22 May 2001, Wendy S wrote:

> I'm attempting to compile SAX2Count.java which is included in the
> /xerces-1_3_1/samples/sax directory.
> 
> 'javac' can't find the org.xml.sax.* packages/classes.  I've tried
> specifying the classpath as:
> 
> javac -classpath /usr/xerces-1_3_1 SAX2Count.java
> 
> Is everything I need included in xerces.jar?

Yes, but your command line doesn't include xerces.jar in the
classpath.  You need to do:

javac -classpath /usr/xerces-1_3_1/xerces.jar SAX2Count.java

-classpath /usr/xerces-1_3_1 puts any class files in the given directory
into the classpath, but not classes in JARs in that directory.

Ian

-- 
Ian Roberts, Software Engineer        DecisionSoft Ltd.
Telephone: +44-1865-203192            http://www.decisionsoft.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to