The javax.tools package can add dynamic capabilities to static applications. JavaServer Pages (JSP) technology in Java Platform is a widely known example of a dynamic framework that generates and compiles Java classes. Other ways to implement such dynamic capabilities include using an existing dynamic scripting language (such as JavaScript or Groovy) that integrates with the application's implementation language (see Resources) or writing a domain-specific language and associated language interpreter or compiler.
Add your comment