After a further try, I have confirmed that my original solution did not
work. I also find an interesting fact that if you try to run the build
script another two times after the first failure, then at the third run the
build will be successfully. My original success has nothing to do with the
classpath setting. It is just because I happened to hit the third run.

Morris Kwan
XSLT Development
IBM Toronto Lab
Tel: (905)413-3729
Email: [EMAIL PROTECTED]

----- Forwarded by Morris Kwan/Toronto/IBM on 09/25/2002 12:34 PM -----
                                                                                       
                                            
                      Morris Kwan                                                      
                                            
                                               To:      Neil Graham/Toronto/IBM@IBMCA  
                                            
                      09/25/2002 09:58         cc:      [EMAIL PROTECTED]       
                                            
                      AM                       From:    Morris Kwan/Toronto/IBM@IBMCA  
                                            
                                               Subject: Re: can Xalan be compiled 
under JDK 1.4.x?(Document link: Morris Kwan)     
                                                                                       
                                            
                                                                                       
                                            
                                                                                       
                                            
                                                                                       
                                            
                                                                                       
                                            
                                                                                       
                                            



Neil,

You can append the Xalan source root to the classpath before doing a build.
I just tested that this works under the Sun JDK 1.4.0.

> set classpath=%classpath%;c:\xml-xalan\java\src
> build

I think we should make this change into the build script so that it can
work with any JDK version.

Morris Kwan
XSLT Development
IBM Toronto Lab
Tel: (905)413-3729
Email: [EMAIL PROTECTED]



                                                                                       
                                            
                      Neil                                                             
                                            
                      Graham/Toronto/IB        To:       [EMAIL PROTECTED]      
                                            
                      M@IBMCA                  cc:                                     
                                            
                                               Subject:  can Xalan be compiled under 
JDK 1.4.x?                                    
                      09/24/2002 11:25                                                 
                                            
                      PM                                                               
                                            
                      Please respond to                                                
                                            
                      xalan-dev                                                        
                                            
                                                                                       
                                            
                                                                                       
                                            



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]







Reply via email to