Hi Peeter, From the command line, try to "DIR C:\PROGRA~1" or "DIR C:\PROGRA~2". One of them (let's say "DIR C:\PROGRA~2") behaves like "DIR C:\Program Files (x86)". In this case: set JAVA_HOME=C:\PRGRA~2
It is a real mess the default "Program Files" value when installing programs under Windows! Hope it helps mihai peeter brunch a écrit : > 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. Sign up > now. <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 > -- 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