0

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 here. 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.

I couldn't find any javadoc for the com.sun.tools.javac either.

1 Answer 1

2

Take a look at javax.tools.JavaCompiler (available since Java 6).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.