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]

Reply via email to