- From: Curt Arnold <carnold@houston.rr.com>
- Date: Tue, 13 Jun 2006 09:41:02 -0500
- To: Suman <sumank@blr.pin.philips.com>
- Cc: DOM mailing list <www-dom@w3.org>
On Jun 13, 2006, at 1:21 AM, Suman wrote: > Hi Arnold, > Thank you for your advice.J2SDK1.4.1-07 is > installed in my > machine.I have edited the build.xml file. > > 1)I have changed Source="1.2" to Source="1.4" in build.xml file.Log > file was > attached(build 14.log) > > 2)Source="1.2" is removed from build.xml.Log file was attached > (build.log) > > In both the above conditions build is failed. > > The Ant Command i have used is $ant -l build.log -v dom2-core-jar. > > DOM Test Suite is downloaded from CVS.Apache Ant 1.6 was installed. > The builds failed in different ways. When source="1.4" and target="1.1" was specified, your javac compiler complained that did not support compiling JDK 1.4 source files to JDK 1.1 class files. The build.xml file has the target and source set to early JDK source and class files so that the generated .jar file can be run by the widest variety of JRE's. In your situation, I would recommend removing both the source="1.2" and target="1.1" attributes. When you had removed the source="1.2" attribute, the first compilation succeeded and the build failed when it attempted to download the DOM Level 2 Core specification with an UnknownHostException for "www.w3.org". That suggests that your machine is not connected to the internet, access was blocked by a firewall or when www.w3.org was unavailable at the time. If it is not possible to connect that machine to the internet, you could manually download necessary DOM specifications and place them in the specs directory. See the get-dom2-* targets around line 1253 in build.xml for the URL's that you need to download.
Received on Tuesday, 13 June 2006 14:41:19 UTC