Giovani,
The base package name for XSLTC has changed from
com.sun.xslt
to
org.apache.xalan.xsltc
It seems like you are using one - or maybe two - older
version(s) of XSLTC. The runtime package you are using
appears to be from an older version of XSLTC than the
compiler you are using. The "namespaceArray" data
structure was introduced in preview 4. The runtime
package must be from before that, while the compiler is
preview 4 or 5. Please use the last Xalan 2.1.0 release.
Please refer to:
http://xml.apache.org/xalan-j/readme.html#xsltcreleasenotes
Regards,
Morten Jorgensen
Giovani Salvador wrote:
>
> Hello anyone.
>
> Is someone using XSLTC? I´ve compiled a simple xsl file into a
> java class using xsltc, with the following command line....
>
> java com.sun.xslt.compiler.XSLTC myStyleSheet.xsl
>
> It compiles ok and generates myStyleSheet.class, but when i run
> it with the cmd line
>
> java com.sun.xslt.runtime.DefaultRun myXML.xml myStyleSheet
>
> it returns the following error:
>
> Exception in thread "main" java.lang.NoSuchFieldError: namespaceArray
> at myStyleSheet.<init>()
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:237)
> at com.sun.xslt.runtime.DefaultRun.doTransform(DefaultRun.java:93)
> at com.sun.xslt.runtime.DefaultRun.main(DefaultRun.java:194)
>
> Does someone know what is happening? Any tip? I am using xalan 2.1 with
> jdk 1.3. Doesn´t xsltc work with earlier versions of Xalan?
> Thank