Is it possible to dynamically compile an external .java file using the Java compiler that eclipse uses rather than JDK?
What I want my code to do is:
- Dynamically create a .java file
- Compile that .java file
- Use reflection to get info about this file
I know how to do steps 1 and 3 but is step 2 possible just using Eclipse or are there better ways to accomplish what I want?
.javafile, just parse it to get an abstract syntax tree (AST) containing the information.