• Post Reply Bookmark Topic Watch Topic
  • New Topic

compile servlets ???

 
Frank Jacobsen
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why dident this work ???

D:\certificering\beer-v1>javac -classpath /src/common/lib/ servlet-api.jar:clas
ses. -d classes src/BeerSelect.java
javac: invalid flag: servlet-api.jar:classes.

Frank
 
Mikalai Zaikin
Ranch Hand
Posts: 3381
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Howdy !

because space in JAR file path confuses compiler,
also, note that on Windows platform you must use
semicolon (;) , not colon ( as JAR delimiters in
'-classpath' clause.

regards,
MZ
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Servlet forum. Please continue this discussion there. Thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!