DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=38500>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38500 Summary: Ant launcher fails when tools.jar is in 'JRE' Product: Ant Version: 1.6.5 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P3 Component: Core AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] The Ant launcher (Locator.java) looks to see if the Sun compiler tools are in the existing class path, and if not, it tries to find them by looking in <java.home>/lib. However, if java.home ends with "/jre", then the Ant launcher does not look there, but in the parent directory <java.home>/../lib, hoping that will be the JDK. Recent changes to JRE redistribution licenses allows vendors to redistribute tools.jar with JREs. This is useful, allowing compilation of JSPs and other forms of dynamic code generation in deployed applications. The existing Ant launcher will fail to find tools.jar in this scenario, because it does not look in <java.home>/lib first before trying the parent. I have a patch for this, so that the launcher will look first in java.home itself, regardless of its name, and then look in the parent directory only if tools.jar was not found in java.home and that path ends with "/jre". -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]