Hi,

You can make Ant use Java 5 rather than 6 quite easily by setting the
JAVA_HOME variable, e.g.:

$ export JAVA_HOME=/usr/lib/jvm/java-1.5.0
$ ant docs [-Dforrest.home]

Then running 'docs' works - you can check what version of Java you are
using by running Ant with t he '-v' flag, i.e.:

$ ant -v docs
Buildfile: build.xml
Detected Java version: 1.6 in: /usr/java/jdk1.6.0_06/jre
Detected OS: Linux
...

Thanks,
Edward

P.S. Please subscribe the developer mailing list.

On Sun, May 25, 2008 at 1:50 PM, zaza Neil <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm newbie in here and When I try to create a website (ant docs) from the 
> hama sources, it stops with the following error messages:
>
>     [exec] 
> /usr/local/src/forrest-0.8/main/webapp/resources/schema/relaxng/sitemap-v06.rng:72:31:
>  error: datatype library "http://www.w3.org/2001/XMLSchema-datatypes"; not 
> recognized
>     [exec] 
> /usr/local/src/forrest-0.8/main/webapp/resources/schema/relaxng/sitemap-v06.rng:81:31:
>  error: datatype library "http://www.w3.org/2001/XMLSchema-datatypes"; not 
> recognized
>     [exec] 
> /usr/local/src/forrest-0.8/main/webapp/resources/schema/relaxng/sitemap-v06.rng:96:28:
>  error: datatype library "http://www.w3.org/2001/XMLSchema-datatypes"; not 
> recognized
>     [exec] 
> /usr/local/src/forrest-0.8/main/webapp/resources/schema/relaxng/sitemap-v06.rng:102:28:
>  error: datatype library "http://www.w3.org/2001/XMLSchema-datatypes"; not 
> recognized
>     [exec] 
> /usr/local/src/forrest-0.8/main/webapp/resources/schema/relaxng/sitemap-v06.rng:109:28:
>  error: datatype library "http://www.w3.org/2001/XMLSchema-datatypes"; not 
> recognized
>     [exec] 
> /usr/local/src/forrest-0.8/main/webapp/resources/schema/relaxng/sitemap-v06.rng:115:28:
>  error: datatype library "http://www.w3.org/2001/XMLSchema-datatypes"; not 
> recognized
>     [exec] 
> /usr/local/src/forrest-0.8/main/webapp/resources/schema/relaxng/sitemap-v06.rng:122:28:
>  error: datatype library "http://www.w3.org/2001/XMLSchema-datatypes"; not 
> recognized
>     [exec] 
> /usr/local/src/forrest-0.8/main/webapp/resources/schema/relaxng/sitemap-v06.rng:128:28:
>  error: datatype library "http://www.w3.org/2001/XMLSchema-datatypes"; not 
> recognized
>     [exec] 
> /usr/local/src/forrest-0.8/main/webapp/resources/schema/relaxng/sitemap-v06.rng:138:40:
>  error: datatype library "http://www.w3.org/2001/XMLSchema-datatypes"; not 
> recognized
>     [exec] 
> /usr/local/src/forrest-0.8/main/webapp/resources/schema/relaxng/sitemap-v06.rng:143:43:
>  error: datatype library "http://www.w3.org/2001/XMLSchema-
>
> ...
>
>     [exec]
>     [exec] BUILD FAILED
>     [exec] /usr/local/src/forrest-0.8/main/targets/validate.xml:158: 
> Validation failed, messages should have been provided.
>     [exec]
>     [exec] Total time: 9 seconds
>
>
> I'm using Java SDK build 1.6.0-b105 and tried with Ant 1.7.0.
>
> -Neil
>



-- 
Best regards,
Edward J. Yoon,
http://blog.udanax.org

Reply via email to