Hi Peter, It seems that the JAVA_HOME works, the new error concern another problem that seems to be known for Tomcat as I found it through Google. Here is the solution "http://testdrive.mapinfo.com/techsupp/miprod.nsf/kbase_by_product/87B9844AF29A886D852570530054F28B".
Hope it helps, mihai peeter brunch a écrit: > Hi, > > I have tried both methods that were suggested : > set JAVA_HOME=c:\Program Files x(86)\Java\jdk1.6.0_14 or > set JAVA_HOME=c:\PRGRA~2\Java\jdk1.6.0_14 > > Now, the Files unexpected error message has gone. But the system > complained cannot find the file -Djava.endorsed.dirs=. reported as below: > .................................................................. > I M P O R T A N T U P G R A D E N O T I C E > .................................................................. > WebGoat 3.5 uses Tomcat 5.5.4 as the default application server. > Tomcat 5.5.4 requires J2SE 5.0 (JDK 1.5) > If the Tomcat server does not start: > Download the WebGoat with Java addition from > 1) http://www.owasp.org/software/webgoat.html > 2) set JAVA_HOME= > 3) run this batch file. > .................................................................. > .................................................................. > The JAVA_HOME environment variable is not defined correctly > This environment variable is needed to run this program > NB: JAVA_HOME should point to a JDK not a JRE > Using CATALINA_BASE: .\tomcat > Using CATALINA_HOME: .\tomcat > Using CATALINA_TMPDIR: .\tomcat\temp > Using JAVA_HOME: C:\PRGRA~2\Java\jdk1.6.0_14 > The system cannot find the file -Djava.endorsed.dirs=. > > May I know how to set home environment variabel correctlyin order to > access the missing file. > > Thanks for the suggested solutions. > > Regards, > Peeter > > > Date: Fri, 11 Dec 2009 18:44:04 -0800 > > Subject: [java ee programming] Re: Lab 4010 home work problem > > From: yousongz...@gmail.com > > To: java-ee-j2ee-programming-with-passion@googlegroups.com > > > > set JAVA_HOME="c:\Program Files x(86)" > > I thought the code above is the key point. > > > > Try this instead: > > set JAVA_HOME=c:\Program Files x(86) > > > > Otherwise, it may work like this when executing if not "%JAVA_HOME%" > > == "" goto gotHome > > > > "%JAVA_HOME%" was stretched into ""c:\Program Files x(86)"" > > then blank string "" was encountered. Then C:\Program. Then Files. And > > Files unexpected. > > > > The dos shell isn't that intelligent like BASH. > > > > On 12月11日, 下午5时40分, peeter brunch <peeterbru...@hotmail.com> > wrote: > > > Hi, > > > > > > I have downloaded Java JDK 1.6 14 as my development kit for the > J2EE) Programming (with Passion!) Basics course. My home directory for > the JDK is under C:\Program Files (x86)\java\jdk1.6.0_14. > > > > > > I ran into the trouble of doing home work > > > > > > LAB-4010: Web Application Security Threats and Counter-measure > > > > > > I set the JAVA_HOME variable in my .bat file as follow: > > > > > > set CATALINA_HOME=.\tomcat > > > set JAVA_HOME="c:\Program Files x(86)" > > > if not "%JAVA_HOME%" == "" goto gotHome > > > if exist ".\java" goto gotJava > > > > > > When I ran the webgoat.bat from window command prompt, I got the > following error message when I try to start the Tomcat server : > > > > > > > E:\techdoc\J2ee\Homework\4010_websecthreats\websecthreats\webgoatstandalone > >webg > > > oat > > > Files was unexpected at this time. > > > > > > Window DOS is stopping at the string "Files" in "C:\Program Files > x(86)" > > > > > > Could someone please tell me how to set up the JAVA_HOME variable > correctly? > > > > > > Thanks for the help in advance. > > > > > > Regards, > > > > > > Peeter > > > > > > _________________________________________________________________ > > > Your E-mail and More On-the-Go. Get Windows Live Hotmail > Free.http://clk.atdmt.com/GBL/go/171222985/direct/01/ > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Java EE (J2EE) Programming with Passion!" group. > > To post to this group, send email to > > java-ee-j2ee-programming-with-passion@googlegroups.com > > To unsubscribe from this group, send email to > > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com > > For more options, visit this group at > > > http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en > > > ------------------------------------------------------------------------ > Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign > up now. <http://clk.atdmt.com/GBL/go/177141664/direct/01/> -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en