Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javac: invalid flag: C:\XML\web.xml

Status
Not open for further replies.

duacdl

Programmer
Apr 8, 2005
2
GB
Hi,

I created a file web.xml in JCreator. When I tried to compile the file, it showed:
javac: invalid flag: C:\XML\web.xml.

Does any know how to solve the problem?

Thanks in advance.

Dan
 
The following is the full message showed after the compiling. It also happened to *.jsp files.

--------------------Configuration: <Default>--------------------
javac: invalid flag: C:\XML\web.xml
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system


Process completed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top