Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 55612 invoked from network); 7 Mar 2004 19:07:20 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 7 Mar 2004 19:07:20 -0000 Received: (qmail 43130 invoked by uid 500); 7 Mar 2004 19:07:10 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 43099 invoked by uid 500); 7 Mar 2004 19:07:09 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 43086 invoked from network); 7 Mar 2004 19:07:09 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 7 Mar 2004 19:07:09 -0000 Received: (qmail 13273 invoked by uid 50); 7 Mar 2004 19:07:41 -0000 Date: 7 Mar 2004 19:07:41 -0000 Message-ID: <20040307190741.13272.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: dev@ant.apache.org Cc: Subject: DO NOT REPLY [Bug 27508] New: - Unable to locate tools.jar. Expected to find it in... X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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=27508 Unable to locate tools.jar. Expected to find it in... Summary: Unable to locate tools.jar. Expected to find it in... Product: Ant Version: 1.7Alpha (nightly) Platform: All OS/Version: Windows 9x Status: NEW Severity: Normal Priority: Other Component: Core AssignedTo: dev@ant.apache.org ReportedBy: mylyane@agate.plala.or.jp org.apache.tools.ant.launch.Locator#getToolsJar() Windows は path が大文字にされてしまう場合があるので, 以下のコーディングだと不充分です。 // couldn't find compiler - try to find tools.jar // based on java.home setting String javaHome = System.getProperty("java.home"); if (javaHome.endsWith("jre")) { --> ^^^^^^^^^^^^^^^^^^^^^^^^^^ javaHome = javaHome.substring(0, javaHome.length() - 4); } File toolsJar = new File(javaHome + "/lib/tools.jar"); if (!toolsJar.exists()) { System.out.println("Unable to locate tools.jar. " + "Expected to find it in " + toolsJar.getPath()); return null; } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org