I am looking for working examples of Oracle's Java Compiler API usage. I want to build something close to javac to customize/extend errors logging capabilities.

有帮助吗?

解决方案

See the STBC (the SSCCE Text Based Compiler). The source is available in stbc.zip.

Compilation failed Compiled OK

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top