Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 18139 invoked from network); 2 May 2007 06:55:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 May 2007 06:55:37 -0000 Received: (qmail 33743 invoked by uid 500); 2 May 2007 06:55:43 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 33715 invoked by uid 500); 2 May 2007 06:55:42 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 33704 invoked by uid 99); 2 May 2007 06:55:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2007 23:55:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2007 23:55:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AB9E4714062 for ; Tue, 1 May 2007 23:55:15 -0700 (PDT) Message-ID: <24304853.1178088915700.JavaMail.jira@brutus> Date: Tue, 1 May 2007 23:55:15 -0700 (PDT) From: "John H. Embretsen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2501) Batch scripts in bin\ report extraneous errors when DERBY_HOME is invalid In-Reply-To: <19584442.1175160865366.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493019 ] John H. Embretsen commented on DERBY-2501: ------------------------------------------ I have verified that the latest patch, derby-2501-check-javacmd.diff, will remove all unnecessary error messages mentioned in this Jira issue. I also verified that the default Java path can be overridden by setting JAVA_HOME. Tested on Win XP Pro, using JDK 1.4.2_12 and Java SE 6 (1.6.0) (default). I think this patch is ready for commit. > Batch scripts in bin\ report extraneous errors when DERBY_HOME is invalid > ------------------------------------------------------------------------- > > Key: DERBY-2501 > URL: https://issues.apache.org/jira/browse/DERBY-2501 > Project: Derby > Issue Type: Bug > Components: Demos/Scripts > Affects Versions: 10.2.1.6, 10.2.2.0 > Environment: Windows > Reporter: John H. Embretsen > Assigned To: John H. Embretsen > Priority: Trivial > Fix For: 10.3.0.0 > > Attachments: d2501_v1.diff, d2501_v2.diff, derby-2501-check-javacmd.diff > > > If DERBY_HOME is set to an invalid location (for example a directory that does not contain lib\derby.jar), most .bat scripts in the bin directory (the ones that call derby_common.bat) report three distinct error messages, of which only one is of value to the user. > Reproduction: > C:\Derby_10\db-derby-10.2.2.0-bin>set DERBY_HOME=c:\temp > C:\Derby_10\db-derby-10.2.2.0-bin>echo %DERBY_HOME% > c:\temp > C:\Derby_10\db-derby-10.2.2.0-bin>bin\sysinfo > DERBY_HOME is set incorrectly or derby.jar could not be located. Please set DERBY_HOME. > The system cannot find the batch label specified - end > '""' is not recognized as an internal or external command, > operable program or batch file. > The distinct error messages are: > 1) DERBY_HOME is set incorrectly or derby.jar could not be located. Please set DERBY_HOME. > 2) The system cannot find the batch label specified - end > 3) '""' is not recognized as an internal or external command, operable program or batch file. > Only 1) is relevant for the user, and should ideally be the only one displayed. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.