Hi Gary, On Sat, Dec 24, 2022 at 6:23 PM Gary D. Gregory <ggreg...@apache.org> wrote:
> This works: > - My ANT_HOME is already set to C:\java\apache-ant-1.10.12 > - Download and unzip > https://dist.apache.org/repos/dist/dev/xalan/j/2.7.3/RC7/xalan-j_2_7_3-src.zip > - cd xalan-j_2_7_3 > - build clean fulldist > - cd xalan-test > - build clean jar FAILS with: > > build beginning... > Error: Could not find or load main class org.apache.tools.ant.Main IMHO, the problem you're facing is, issues (i.e, could not find or load main class org.apache.tools.ant.Main) running command "build clean jar" from the XalanJ 2.7.3 RC7 source distribution from its folder xalan-test. You wish to do this, using your preset ANT_HOME environment variable (pointing to your ant home folder C:\java\apache-ant-1.10.12) at an OS level. I've investigated this issue a bit, and following are my findings. The MANIFEST.MF file, available within the file ant.jar of the ant 1.10.12 release mentions following, Created-By: 11.0.8+10 (AdoptOpenJDK) The problem it seems to me is that, XalanJ 2.7.3 RC7 is built with Java 1.8. And hence, the command "build clean jar" is having problems (when using ANT_HOME pointing to your folder C:\java\apache-ant-1.10.12) loading the ant file org.apache.tools.ant.Main. If you can set ANT_HOME environment variable (only for your command line session) as following 'set ANT_HOME=D:\xalan-j_2_7_3-src\xalan-j_2_7_3' (this is where, for example I've expanded XalanJ 2.7.3 RC7 source distribution), the ant run-time shall be found by jvm from the jar located at %_ANT_HOME%\tools\ant.jar (which is available, within XalanJ 2.7.3 RC7 source distribution). If the above mentioned resolutions, work for you, maybe we could mention that within readme file as well, and I could then create XalanJ 2.7.3 RC8. I don't mind creating this new RC, or subsequent RC if that doesn't annoy you or anyone else. I feel that, we're very close, to creating the right XalanJ 2.7.3 distributables (thanks, for all your suggestions so far). I'd hesitate at this stage of XalanJ 2.7.3 release process, to make a change as you've suggested within your another mail, where you've suggested to include xalan-test folder with xalan-java folder itself, and retire the xalan-test repos. Doing this is not difficult, but it'll involve few more days of testing, to test that configuration. May be, this could be done, after XalanJ 2.7.3 is released. Please advise. -- Regards, Mukul Gandhi --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org For additional commands, e-mail: dev-h...@xalan.apache.org