Environment: Windows 7, Java 6.
Trying to compile a .java file with -cp option. The file uses a single jar file that's in the current directory ALONG WITH some other jar files in the current directory.
javac -cp ./*.jar MyFile.java
doesn't work.
javac -cp ./* MyFile.java
doesn't work
javac -cp ./MyJar.jar MyFile.java
works
First two cases, I get a invalid flag error. Can someone explain this behavior?
And I checked if it is spaces issue, there are no spaces anywhere in my full file paths.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…