Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 59043 invoked from network); 25 Aug 2006 15:55:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Aug 2006 15:55:40 -0000 Received: (qmail 81370 invoked by uid 500); 25 Aug 2006 15:55:39 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 81336 invoked by uid 500); 25 Aug 2006 15:55:39 -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 81326 invoked by uid 99); 25 Aug 2006 15:55:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 08:55:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.42.249] (HELO nwkea-pix-1.sun.com) (192.18.42.249) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 08:55:37 -0700 Received: from d1-sfbay-09.sun.com ([192.18.39.119]) by nwkea-pix-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k7PFtGTL027608 for ; Fri, 25 Aug 2006 08:55:16 -0700 (PDT) Received: from conversion-daemon.d1-sfbay-09.sun.com by d1-sfbay-09.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J4K002019AEQJ00@d1-sfbay-09.sun.com> (original mail from Richard.Hillegas@Sun.COM) for derby-dev@db.apache.org; Fri, 25 Aug 2006 08:55:16 -0700 (PDT) Received: from [129.150.21.98] by d1-sfbay-09.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J4K001F99K38QK6@d1-sfbay-09.sun.com> for derby-dev@db.apache.org; Fri, 25 Aug 2006 08:55:15 -0700 (PDT) Date: Fri, 25 Aug 2006 08:55:17 -0700 From: Rick Hillegas Subject: Re: installation issue: problems caused by spaces in path pointed to by DERBY_HOME or DERBY_INSTALL In-reply-to: <54ac72d70608241400n6b93a276ha758ee9f47e31bc6@mail.gmail.com> Sender: Richard.Hillegas@Sun.COM To: derby-dev@db.apache.org Message-id: <44EF1D65.6010202@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en References: <44EE0A8D.6090902@sun.com> <54ac72d70608241400n6b93a276ha758ee9f47e31bc6@mail.gmail.com> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hey Andrew, Here's a bit more information on this problem. Regards-Rick It does not work correctly on Windows XP SP2. It adds extra characters that are not the DOS 8.3 format and even changes the name of the db directory in the PATH to db0. The error message we get is Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/derby/tools/ij The problem is the CLASSPATH set by setEmbeddedCP.bat. Once you set DERBY_INSTALL, then run this batch file, the resulting CLASSPATH is: CLASSPATH=C:\PROGRA~1\Java\JDK16~1.0\db0\db\lib\derby.jar;C:\PROGRA~1\Java\JDK16~1.0\db0\db\lib\derbytools.jar;.; which you can clearly see has some strange problems in it. Somehow it ads the directory db0 and really messes up the name of the jdk1.6.0 directory. However, if you remove that FOR statement, everything works just fine. Andrew McIntyre wrote: > On 8/24/06, Rick Hillegas wrote: > >> The following line in setEmbeddedCP.bat raises errors if there are >> spaces in the path identified by DERBY_HOME or DERBY_INSTALL: >> >> @FOR %%X in ("%DERBY_HOME%") DO SET DERBY_HOME=%%~sX >> >> Is this a known problem? I'm not a DOS expert and I don't know >> understand what "%%~sX" means. > > > That should convert the value of DERBY_HOME to it's DOS 8.3 short form > to avoid further problems with the path containing spaces. This is > working for me on Windows 2000. What version of Windows are you using, > and what is the error you are getting? > > andrew