any environment variables you refererence have to conform to the 8.3 convention e.g as long folder and filenames with whitespace characters cannot be read by 95% of I/O routines but.. using the 8.3 shortened name always works e.g
so this wont work set JAVA_HOME =D:\Program Files\Java\jdk1.6.0_07 set JAVA_HOME=D:\PROGRA~1\JAVA\JDK16~1.0_0 verify by cd D:\PROGRA~1 dir /X /AD and you will see the shortened name.. if you look at the %GLASSFISH_HOME%\config\asenv.bat the AS_JAVA environment variable needs to point to the correct location of JAVA e.g. set AS_JAVA=D:\PROGRA~1\JAVA\JDK16~1.0_0 HTH Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Sat, 11 Oct 2008 15:47:42 +0400 > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: Re: Why can NOT run Tomcat on my Laptop > > 2008/10/11 IceManPat <[EMAIL PROTECTED]>: > > > > It still says environment variable not correctly defined ......and i also > > closed the Glassfish ...I do not use any printers now....there should not > > have any conflict on port 8080..... > > > > In cmd.exe window > > > > In cmd.exe window I type > > > > C:\>set JAVA_HOME =D:\Program Files\Java\jdk1.6.0_07 > > > > The location for my java jre is : D:\Program Files\Java\jdk1.6.0_07 > > > > ....Any ideas ?? > > > > And, after that, running "catalina.bat run" - what is the result? > > It still says environment variable not correctly defined > - what exactly env. variable? > > > The location for my java jre is : D:\Program Files\Java\jdk1.6.0_07 > Is it JRE or JDK? > > Also, read RUNNING.txt. You have it in the root of the *.zip archive. > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________________ Get more out of the Web. Learn 10 hidden secrets of Windows Live. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008