Chapter 14
Compiling and Scripting
Topics in This Chapter
In this short chapter, you will learn how to use the compiler API to compile Java code from inside of your application. You will also see how to run programs written in other languages from your Java programs, using the scripting API. This is particularly useful if you want to give your users the ability to enhance your program with scripts.
The key points of this chapter are:
With the compiler API, you can access the Java compiler in your programs.
You can generate Java code “on the fly” by reading source from memory and writing classes to memory.
The scripting API lets Java programs interoperate with a number of scripting languages. ...
Get Core Java for the Impatient, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.