Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 55871 invoked from network); 3 Sep 2000 18:08:04 -0000 Received: from unknown (HELO s1.servlets.net) (root@209.221.135.4) by locus.apache.org with SMTP; 3 Sep 2000 18:08:04 -0000 Received: from gefionsoftware.com (lsanca1-ar8-070-033.biz.dsl.gtei.net [4.35.70.33]) by s1.servlets.net (8.9.3/8.9.3) with ESMTP id LAA02821 for ; Sun, 3 Sep 2000 11:08:00 -0700 Message-ID: <39B29486.A9B1CB27@gefionsoftware.com> Date: Sun, 03 Sep 2000 11:12:22 -0700 From: Hans Bergsten Organization: Gefion software X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en-US,en,sv MIME-Version: 1.0 To: tomcat-dev@jakarta.apache.org Subject: Re: Windows batch files for Tomcat 3.2 References: <000b01c0151e$e0fdb760$61bafea9@first> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N > Larry Isaacs wrote: > > Attached is a proposed set of Windows batch files for Tomcat 3.2. > [...] > This set works for me on Win98SE and NT 4.0. Let me know if problems are > found on Win95 or Win2000. Thanks, this looks much better. But a minor modification is needed to get it to work on Windows 98 (at least the unpatched version I run): rem ----- Set Up The Runtime Classpath -------------------------------------- :setClasspath set CP=%TOMCAT_HOME%\classes rem Try to determine if TOMCAT_HOME contains spaces if exist %TOMCAT_HOME%\lib\webserver.jar goto testOS echo Your TOMCAT_HOME appears to contain spaces echo Unable to set CLASSPATH dynamically goto staticClasspath :testOS rem Dynamic CLASSPATH doesn't work on Windows 95/98 if not "%OS%" == "Windows_NT" goto staticClasspath :dynClasspath [...] The only thing I've changed is a test on the OS to only go to dynClasspath if it's NT. Since the %OS% variable is not initialized on Windows 98, I didn't see a better way even though I realize this may force a static CLASSPATH on more platforms than really needed. I also believe the last part of the CLASSPATH setting should be changed to this: :chkClasspath if "%CLASSPATH%" == "" goto noClasspath set CP=%CP%;%CLASSPATH%;%JAVA_HOME%\lib\tools.jar :noClasspath set CP=%CP%;%JAVA_HOME%\lib\tools.jar What I have changed here is to add ";%JAVA_HOME%\lib\tools.jar" even if the CLASSPATH is set. Hans -- Hans Bergsten hans@gefionsoftware.com Gefion Software http://www.gefionsoftware.com