check_java
Run javac to check Java files or projects for compilation errors. Pass filePath for a single file or directory for the project root.
Instructions
Check for compilation errors in a Java file or project using 'javac'. For single files, pass filePath; for projects, pass directory containing source files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| envPath | No | Optional: Custom PATH environment variable. If not provided, uses system default PATH. | |
| filePath | No | Optional: Full path to a single .java file to compile-check. | |
| directory | No | Optional: Root directory of the Java project. If provided, compiles all .java files in it. |