Hi Gopal,
I have tried two variations on that theme:
javac -extdirs d:\xml-xalan\java\build\xalan.jar
src\org\apache\xalan\templates\FuncKey.java
where xalan.jar is a prebuilt modern Xalan binary; and
javac -extdirs d:\xml-xalan\java\src
src\org\apache\xalan\templates\FuncKey.java
Both gave me 56 compilation errors under Sun JDK 1.4.1. :(
As a slight aside, I recall hearing about a "bug" in Sun JDK 1.4.0 that
permitted -extdirs to override what was in rt.jar. I haven't tried with
the version of 1.4.0 (1.4.01 to be exact) that I have, nor can I recall
exactly where I got that impression from.
Anyway, since the behaviour appears to fail on 1.4.1 this wouldn't seem to
bde a general solution.
Cheers,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone: 905-413-3519, T/L 969-3519
E-mail: [EMAIL PROTECTED]
|---------+---------------------------->
| | Gopal Sharma |
| | <Gopal.Sharma@Sun|
| | .COM> |
| | |
| | 09/25/2002 06:51 |
| | AM |
| | Please respond to|
| | xalan-dev |
| | |
|---------+---------------------------->
>---------------------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Subject: Re: can Xalan be compiled under JDK 1.4.x?
|
|
|
|
|
>---------------------------------------------------------------------------------------------------------------------------------------------|
Have you tried javac -extdirs <dir> <files> ? In this case, javax.xml.*
classes are loaded from rt.jar and rest from <dir>\xalan.jar.
HTH
- Gopal
[EMAIL PROTECTED] wrote:-
|
| Hi all,
|
| I've looked around the list archives a bit, but can't readily find an
| answer to this. Is there a reliable way to get modern versions of Xalan
to
| compile under JDK 1.4.x?
|
| The only way I've found so far is to carefully set javac's bootclasspath
to
| include all jars important to the JDK but exclude the jar containing
Xalan;
| but since jars are laid out in a vendor-dependent way, it's not
| obvious to me that it would be easy to code a clean and portable solution
| on these lines. I've also played with things like this:
|
| javac -J-Xbootclasspath/p:modern_xalan_dir modern_xalan_files
|
| but this still doesn't seem to permit classes to be prepended to the
| cootclasspath that javac's using.
|
| Any ideas greatly appreciated!
|
| Thanks,
| Neil
| Neil Graham
| XML Parser Development
| IBM Toronto Lab
| Phone: 905-413-3519, T/L 969-3519
| E-mail: [EMAIL PROTECTED]
|
|