W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2006

Re: Install DOM TS

From: Curt Arnold <carnold@houston.rr.com>
Date: Tue, 13 Jun 2006 00:01:28 -0500
Message-Id: <0856D7F9-BB53-4BAD-8EA1-2FAFE6F10D46@houston.rr.com>
Cc: DOM mailing list <www-dom@w3.org>
To: Suman <sumank@blr.pin.philips.com>

The problem is that your javac compiler apparently does not recognize  
the

-source 1.2

switch that specifies that the file should interpreted per the Java  
language definition as of JDK 1.2 which is generated due to the  
source="1.2" attributes on the javac elements in the build file.  Not  
sure what Java compiler you have on the path.  I thought that every  
Sun javac supported -source=1.2, but I don't have time to check and  
don't have a JDK 1.4.1 installed.  Maybe a slightly different Java  
source language version (1.3 or 1.4) would work with your compiler.

I did not parameterize the Java language version, so you may need to  
manually edit the build.xml file.  Try the following steps:

1) Run "javac -version" to determine implementer and version of Java  
compiler
2) Run "javac -source 1.3 java/org/w3c/domts/DOMErrorImpl.java" to  
see you get a warning about unrecognized version (if version is  
recognized, you should get a cannot find symbol error).  If that  
fails, try 1.4.
3) If you found a value that works, modify source="1.2" in build.xml  
to source="1.3" or source="1.4".
4) If your javac is from non-Sun JDK or an old JDK (1.1 or 1.2), try  
installing a newer Sun JDK.
4) If none work, remove source="1.2" attributes from build.xml.
  
Received on Tuesday, 13 June 2006 05:01:35 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:40:09 UTC