How can I check a Java file for errors, without producinv a .class file?

Viewed 34

Is there a way to have javac only check a Java file for errors, but without compiling it to a class file? I'm only interested in checking whether the file has syntax errors and so on. I don't want the compiled class file.

0 Answers
Related