Hello.
The only way to compile a java code is "javac" tool. And the syntax of this tool is that it always expects java code as a file.
You can use built-in exec() method in your java program to...