A Java API for the Java compiler, available as javax.tools.JavaCompiler and related classes. (Use [javac] for questions about the command line compiler.)
Questions tagged [java-compiler-api]
181 questions
-5
votes
3 answers
Unable to compile default package class referred in other classes using JavaCompiler
I have a situation where I need to compile classes dynamically.
Following is the structure in which my java classes have been organized.
// no package
public class A{
}
package test ;
public class B{
A obj;
//other java code
}
where…

Pavan
- 9
- 3