Shane,
I may be able to help on this. We were trying to test
Xalan D10 on a recent Solaris build which had Xalan
built into the rt.jar. We were able to get the JVM
to use the version of Xalan we wanted by using the
-Xbootclasspath/p:<path-to-D10-or-whatever>
Tom
[EMAIL PROTECTED] wrote:
>
> So color me wierded out: Xalan from CVS a few minutes ago gives compile
> errors under JDK 1.4 beta 2, but works nicely in other JDKs. Any ideas,
> anyone?
>
> - Shane
>
> Oh: wait, nevermind, the xalan classes are in JAVA_HOME\jre\lib\rt.jar. So
> how exactly do I use the current Xalan code in a JDK 1.4 environment? Has
> Sun actually documented the procedure for 'builtin' extensions to upgrade
> themselves within an existing JDK?
>
> E:\builds\xml-xalan\java>build jar
>
> Xalan-J 2.x Build
> -------------
>
> E:\builds\xml-xalan\java>"D:\jdks\jdk1.4\bin\java" -mx64m -Dant.home="" -classpath
>"bin\ant.jar;bin\xerces.jar;D:
> \jdks\jdk1.4\lib\tools.jar;unknown;D:\jdks\jdk1.4\lib\tools.jar"
>org.apache.tools.ant.Main jar
> Buildfile: build.xml
>
> prepare:
> [echo] Project:Xalan-Java version:2_2_D11 build.xml Revision: 1.133 $
> [echo] xml-commons code is: ${xml-commons.present}
>
> copy-commons-src-from-xml-commons:
>
> copy-commons-src-from-local:
> [echo] *** Copying API src from local tree...
> [echo] *** WARNING: you should not ship a dist from this build!
>
> copy-commons-src:
>
> compile:
> [echo] compile entire source tree and copy .properties and .res files to build
>tree.
> [javac] Compiling 2 source files to E:\builds\xml-xalan\java\build\classes
> [javac] Note: sun.tools.javac.Main has been deprecated.
> [javac]
>E:\builds\xml-xalan\java\src\org\apache\xalan\extensions\XSLProcessorContext.java:244:
> Wrong number of arguments in constructor.
> [javac] DTMIterator iterator = new OneStepIterator(iter, -1);
> [javac] ^
> [javac]
>E:\builds\xml-xalan\java\src\org\apache\xalan\transformer\TransformerImpl.java:1374:
>Wrong number of arguments in method.
> [javac] XObject xobject = XObject.create(value, getXPathContext());
> [javac] ^
> [javac]
>E:\builds\xml-xalan\java\src\org\apache\xalan\transformer\TransformerImpl.java:1421:
>Wrong number of arguments in method.
> [javac] replaceOrPushUserParam(new QName(s1),
>XObject.create(value,getXPathContext()));
> [javac] ^
> [javac]
>E:\builds\xml-xalan\java\src\org\apache\xalan\transformer\TransformerImpl.java:1426:
>Wrong number of arguments in method.
> [javac] replaceOrPushUserParam(new QName(s1, s2), XObject.create(value,
>getXPathContext()));
> [javac] ^
> [javac] E:\builds\xml-xalan\java\src\org\apache\xpath\XPathContext.java:299:
>Wrong number of arguments in constructor.
> [javac] DTMIterator iter = new
>org.apache.xpath.axes.OneStepIteratorForward(Axis.SELF);
> [javac] ^
> [javac] Note: 2 files use or override a deprecated API. Recompile with
>"-deprecation" for details.
> [javac] 5 errors, 2 warnings
>
> BUILD FAILED
>
> E:\builds\xml-xalan\java\build.xml:306: Compile failed, messages should have been
>provided.
>
> E:\builds\xml-xalan\java>java -version
> java version "1.4.0-beta2"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
> Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)