In response to Jake's questions:

Within the application itself we are accessing the Xerces classes directly. The JDK we are using in this instance is JDK1.3.16. The command I'm using and the error are below...

D:\SmwData\Downloads\xerces-2_9_0>ant deprecatedjar
Buildfile: build.xml

BUILD FAILED
D:\SmwData\Downloads\xerces-2_9_0\build.xml:42: taskdef class org.apache.xerces.
util.XJavac cannot be found

Total time: 0 seconds
D:\SmwData\Downloads\xerces-2_9_0>


As you can see the problem is in trying to build the single xerces.jar file, not in the application (at least right now thats where I'm stuck). I downloaded the bin jar, the source jar, and the tools jar. I unzipped each file into their own directory, then combined all of the files into the single directory calles xerces-2_9_0. That directory does contain the xjavac.jar file.

The actual directions from the xerces site seem to indicate that simply unzipping the three different zip files (using the jar xf.... command - jar xf Xerces-J-bin.2.9.0.zip as an example) will unzip each of the jar files into the single directory xerces-2_9_0. When I tried this is did that, but because some of the jar files contain similar directory or folder names things were being overwritten. So I unzipped them into their own directories, then manually combined everything together to retain all the various pieces of information.

This is the piece of the install instructions that I'm trying to get through and not having success...

If you are on a Windows system and you wish to get only the xerces.jar file, you would execute build.bat deprecatedjars.

If I use that precise command (the build.bat deprecatedjars command) I get the following...

D:\SmwData\Downloads\xerces-2_9_0>build.bat deprecatedjars
Xerces-Java Build System
------------------------
LOCALCLASSPATH
Building with ant classpath C:\j2sdk1.4.1_07\lib\tools.jar;C:\j2sdk1.4.1_07\lib\
classes.zip;.\tools\ant.jar;.\tools\ant-nodeps.jar;.\tools\xercesImpl.jar;.\tool
s\xml-apis.jar;.\tools\bin\xjavac.jar
Starting Ant...
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/
Main

D:\SmwData\Downloads\xerces-2_9_0>

I don't know if this makes more sense than my original message or if this just confuses things, but if anyone has done this and can get me pointed in the right direction I'd appreciate it.

thanks
steve


At 03:12 PM 1/26/2007, you wrote:
Are you accessing Xerces classes directly or via JAXP? What JDK are you using? What errors do you get?

Jake

At 09:32 AM 1/25/2007, you wrote:
>Hi,
>
>We have an application that is using the Xerces-J 1.4.4 jar file to do its
>parsing.  Most everything is fine, except that its not properly handling
>some encoded characters (not changing a & string to & and causing some
>strange data problems along the way as an example).
>
>I've been looking at the Xerces-J 2.9.0 version which I'd like to use, but I >don't want to rework the entire application to utilize this so I was trying >to create the single xerces.jar file from this versions source code so I can
>drop that into our application (reading the documentation this seems
>possible for backward compatibility).
>
>I'm having a lot of trouble with this as it continually tells me that it
>can't find certain files, even though I can see those files in the
>directory.
>
>I've downloaded the binaries, the source, and the tools. I unpacked the zip
>files into separate directories and then combined them all together into a
>single xerces-2_9_0 directory. I added that to my classpath. I'm trying to
>use the "ant build deprecated jar" command as the documentation indicates,
>but this is where I start running into problems with files not found, etc...
>.
>
>Does anyone have any experience doing this?  Any hints as to what I am
>missing?  I've been reading the through the install documentation for this
>and as far as I can tell I'm following the directions, but they are a little
>thin so I may be missing something.
>
>Any help would be greatly appreciated.
>steve

_________________________________________________________________
Turn searches into helpful donations. Make your search count. http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_donation&FORM=WLMTAG


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

Reply via email to