DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25798>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25798 Locator.java can't find tools.jar if CLASSPATH is in uppercase-letters and pointing to JRE Summary: Locator.java can't find tools.jar if CLASSPATH is in uppercase-letters and pointing to JRE Product: Ant Version: 1.6.0 Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] when ant is started with "-lib %CLASSPATH%", Locator.java is not able to find tools.jar if the system property "java.home" is in uppercase and pointing to the JRE (e.g. "C:\J2SDK\JRE"). on line 208 of Locator.java, the condition checks if the JRE is in the classpath. unfortunately, String.endsWith() is case-sensitive!! to avoid the message "Unable to locate tools.jar .." i changed line 208 into if (javaHome.endsWith("jre") || javaHome.endsWith("JRE")) { like this, ant finds tools.jar and works fine. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]