• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A problem about servletc.bat

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I created a servletc.bat file following the version provided by Marty Hall in his core servlets and jsp. This is my servletc.bat:
@echo off
javac -d C:\Program Files\Apache Tomcat 4.0\webapps\myWebApp\WEB-INF\classes %1%
And when I tried to use servletc, I got error messages shown below:
C:\myDevDir>servletc *.java
javac: invalid flag: Files\Apache
You see, because of the space between "Program" and "Files" and that between "Apache" and "Tomcat", javac takes "Files\Apache" as a flag.
If I don't want to change Program Files to Program_Files or Apache Tomcat 4.0 to Apache_Tomcat_4.0 so as to eliminate the disturbing spaces, how can I handle this problem? Thanks.
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
use "" around the path name, like "c:\...\prog files\..."
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic