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 Fatima Ashfaq <fa...@hotmail.com> on 2003/06/23 19:21:50 UTC

Beginner: Difficulty in Compiling DOM samples


Hi,

I am a beginner and I am trying to run the samples for DOm given in the 
folder : xercers-2_4_0/samples/dom . I am using Unix system.

I was trying to compile the Counter.java file in the above folder and i 
always get errors.

I am giving it the simple command "javac Counter.java "  and it returns the 
error that

"Counter.java:149: package ParserWrapper does not exist
    protected ParserWrapper.DocumentInfo fDocumentInfo; "

and some other similar errors. I cannot find the package ParserWrapper in 
the folder. I have compiled the ParserWrapper.java file given in the same 
folder , but it keeps giving the above errors.

I would really appreciate your help in this regard.

Thank you very much .

Regards,
Fatima.

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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


Re: Beginner: Difficulty in Compiling DOM samples

Posted by Fatima Ashfaq Ramay <cs...@cs.yorku.ca>.
Thank you very much for your reply.

I am now having problems with the build.sh script.
(I am using Unix).

First, I had put the tools folder inside my xerces folder,
and tried to run build.sh.

But I encountered errors like org.apache.tools.ant.main not found etc.
Now I have made the directories org/apache/tools/ant etc and extracted all
the files from ant.jar in it.

Now the script runs for 2,3 seconds and  give the following error:
"
Xerces-Java Build System
------------------------

Building with classpath
:./tools/ant.jar:./tools/xml-apis.jar:./tools/xercesImpl.jar:./tools/bin/xjavac.jar
Starting Ant...

Buildfile: build.xml

BUILD FAILED
file:/cs/home/cs221162/xerces-2_4_0/build.xml:22: taskdef class
org.apache.xerces.util.XJavac cannot be found

"

I am trying to find the XJavac file , but cannot find it. Secondly i
beleive i must be doing something wrong as I had to extract all the
files from ant.jar myself and the script was not taking it otherwise.

Can you please tell me how to run the script successfully, and what
possibly can i be doing wrong.

Thank you very much .
Fatima

On Tue, 24 Jun 2003, Andy Clark wrote:

> Fatima Ashfaq wrote:
> > I am a beginner and I am trying to run the samples for DOm given in the
> > folder : xercers-2_4_0/samples/dom . I am using Unix system.
> >
> > I was trying to compile the Counter.java file in the above folder and i
> > always get errors.
>
> You need to set the source directory OR compile from the
> base sample directory.
>
> You can also just use the Ant build script and build just
> the samples.
>
> --
> Andy Clark * andyc@apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
>

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


Re: Beginner: Difficulty in Compiling DOM samples

Posted by Andy Clark <an...@apache.org>.
Fatima Ashfaq wrote:
> I am a beginner and I am trying to run the samples for DOm given in the 
> folder : xercers-2_4_0/samples/dom . I am using Unix system.
> 
> I was trying to compile the Counter.java file in the above folder and i 
> always get errors.

You need to set the source directory OR compile from the
base sample directory.

You can also just use the Ant build script and build just
the samples.

-- 
Andy Clark * andyc@apache.org


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