javac invalid flag
I was trying to execute this command in command prompt to find my build error. What I have broken down upto is that javac is treating one of the file name as a flag (option) and thats why its not able to execute. HOw do i fix this?
C:\Users\AUG>javac -verbose -classpath "C:\Program Files\MATLAB\R2010b\toolbox\j
avabuilder\jar\javabuilder.jar" -d "C:\Users\AUG\Documents\SourceTraceJAVA\Sourc
eTrace\src\classes" "C:\Users\AUG\Documents\SourceTraceJAVA\epanet2.h" "C:\Users
\AUG\Documents\SourceTrace\src\SourceTrace\SourceTrace.java" "C:\Users\AUG\Docum
ents\SourceTraceJAVA\SourceTrace\src\SourceTrace\SourceTraceMCRFactory.java" "C:
\Users\AUG\Documents\SourceTraceJAVA\SourceTrace\src\SourceTrace\SourceTraceRemo
te.java" "C:\Users\AUG\Documents\SourceTraceJAVA\SourceTrace\src\SourceTrace\pac
kage-info.java"
javac: invalid flag: C:\Users\AUG\Documents\SourceTraceJAVA\epanet2.h
Usage: javac <options> <source files>
use -help for a list of possible options
It is considering epanet2.h file as a flag instead开发者_如何学C of a file. Is there somethng wrong with the syntax ? How do I resolve this?
Java doesn't know what to do with .h
files -- that looks (based on extension) like a C header file so it shouldn't be included in the list of files passed to javac
or if it is a valid java source file then change its extension to .java
.
*.h
is not a valid java source file extension.
精彩评论