Date: 2004-02-08T09:04:14
Editor: VadimGritsenko <[EMAIL PROTECTED]>
Wiki: Xindice Wiki
Page: XindiceFAQ/1.0/CompileError
URL: http://wiki.apache.org/xindice/XindiceFAQ/1.0/CompileError
no comment
New Page:
== I get compilation error when compiling Xindice 1.0. What should I do? ==
If you get compilation error like:
{{{
[javac] C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\xmlxindice\java\src\
org\apache\xindice\core\query\XPathQueryResolver.java:502: array required, but o
rg.apache.xpath.compiler.OpMapVector found
[javac] int endFunc = pos + cmp.getOpMap()[pos+1] - 1;
[javac] ^
}}}
It means that you are using newer Xerces/Xalan versions than the ones shipped
with Xindice 1.0.
If you are compiling with JDK1.4, this can be fixed by providing parameter:
{{{
java -Djava.endorsed.dirs=endorsed
}}}
Where, endorsed directory should have Xerces, Xalan, xml-apis JAR files which
are part of Xindice 1.0