title: API for Java backend
body: <p>Is there an API for the javac backend? Instead of hacking the call to main with command line args and what not like they do it <a href="http://mindprod.com/jgloss/javacmain.html" rel="nofollow">here</a>.  Ideally I'd like to specify in/out streams for source and generated bytecode - do not want to deal with classloaders and class paths headache.</p>
  
  <p>I couldn't find any javadoc for the  com.sun.tools.javac either.</p>