This shouldn't matter. Xerces has its own javac [1] task which prevents 
the build from clashing with the classes in the JDK. It's fine to use JDK 
1.4 and above for compilation. The error Peter got probably means he's 
missing the build tools (i.e. Xerces-J-tools.2.9.0.zip) or they weren't 
extracted into the directory where the source was extracted. 

Whatever the issue is, if it's not working with the distributed binaries I 
doubt rebuilding the parser from source is going to help.

[1] http://svn.apache.org/viewvc/xerces/java/trunk/tools/src/XJavac.java

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

Jacob Kjome <[EMAIL PROTECTED]> wrote on 01/26/2007 11:48:16 AM:

> I suggest installing the most recent release of JDK1.3.1 and building 
under
> that.  You can still use JDK1.5 as your default JDK.  Just open a 
command
> window and do the following...
> 
> set CLASSPATH=.
> set JAVA_HOME=C:\jdk1.3.1_18
> set Path=C:\jdk1.3.1_18\bin;%Path%
> 
> Now Ant and the Xerces build will only see the JDK1.3.1 libraries. These 
new
> settings will be localized to this instance of the command window and 
you can
> build Xerces without worrying about clashes with later JDK's.
> 
> 
> Jake
> 
> Quoting Peter Schonefeld <[EMAIL PROTECTED]>:
> 
> > Hi,
> > With reference to my earlier post, I'm still trying to get Xerces-J 
working
> > in dot net (I want to start a new project with standard DOM XML 
tools). I'm
> > not a java developer so am out of my depth here, but i think that my 
problem
> > is that I need to re-build Xerces to include the external classes such 
as
> > those found in org.w3c.dom etc. Is this possible? I can see that these
> > classes exist in the src.zip file included with jdk1.5.0_10 .
> >
> > But before I can even look at this, I am unable to get the build to 
run on
> > my windows XP machine.
> >
> > Looking at the build.bat file, there is no classes.zip file anywhere 
to be
> > found on my machine, but i have made sure that all of the other paths 
have
> > the required file in them.
> >
> > LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;
> > %JAVA_HOME%\lib\classes.zip;
> > .\tools\ant.jar;
> > .\tools\ant-nodeps.jar;
> > .\tools\xercesImpl.jar;
> > .\tools\xml-apis.jar;
> > .\tools\bin\xjavac.jar
> >
> > When i run the batch file i get:
> > ===============
> > Xerces-Java Build System
> > ------------------------
> > Building with ant classpath
> > C:\Java\jre1.5.0_10\lib\tools.jar;C:\Java\jre1.5.0_1
> > 0\lib\classes.zip;.\tools\ant.jar;.\tools\ant-nodeps.jar
> > ;.\tools\xercesImpl.jar;
> > .\tools\xml-apis.jar;.\tools\bin\xjavac.jar
> > Starting Ant...
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/apache/tools/ant/
> > Main
> >
> > H:\Tools\Apache\Xerces\xerces-2_9_0>pause
> > Press any key to continue . . .
> > ================
> >
> > Any help would be appreciated.
> >
> > TIA
> > Pete
> >
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to