You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Wendy S <we...@home.com> on 2001/05/22 22:24:15 UTC

help compiling examples

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?

Pardon if I'm using the wrong terminology, I'm new to Linux, and
haven't added any new packages before this.  On Windows, it would be
just adding something to CLASSPATH, but on [Caldera Open] Linux I
haven't worked out how to do that.  

when I try export PATH=/usr/xerces-1_3_1:$PATH
it doesn't change what echo $PATH reports. (It's the same before and
after I do the 'export' command.)

-- 
Wendy in Chandler AZ
http://members.home.com/wendywds
wendywds *at* home *dot* com

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: help compiling examples

Posted by Ian Roberts <ir...@decisionsoft.com>.
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: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


RE: help compiling examples

Posted by Jill Harrison <ji...@stsci.edu>.
i think that for .jar files you need to specify not only the path,
but the name of the .jar file too - 
like: /corsair/data2/jillh/dads/lib/xerces.jar

> 
> '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
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org