0

Dear All,

I am trying to learn j2ee from the basics. I have written a basic program from my guidance book and when i try to compile it , i get the below error.
Please throw some light on it.

javac -classpath C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/servlet-api.jar:classes:. -d classes src/com/example/web/BeerSelect.java
javac: invalid flag: (x86)/Apache
Usage: javac <options> <source files>
use -help for a list of possible options

Edited by murali89

2
Contributors
2
Replies
14
Views
6 Months
Discussion Span
Last Post by murali89
2

I suspect your problem has to do with whitespaces. Try enclosing the path in quotes("):

javac -classpath "C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/servlet-api.jar":classes:. -d classes src/com/example/web/BeerSelect.java
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.