Java compiler at Runtime
The Eclipse compiler is only 1.6 MB and should work without Eclipse. You can download it here. Also it looks like it implements the JavaCompiler API.
It is licensed under the Eclipse public license so including it in your own application should be no problem.