Skip to Content
Core Java for the Impatient, 3rd Edition
book

Core Java for the Impatient, 3rd Edition

by Cay S. Horstmann
October 2022
Intermediate to advanced
576 pages
15h 37m
English
Addison-Wesley Professional
Content preview from Core Java for the Impatient, 3rd Edition

Chapter 14

Compiling and Scripting

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:

  1. With the compiler API, you can access the Java compiler in your programs.

  2. You can generate Java code “on the fly” by reading source from memory and writing classes to memory.

  3. The scripting API lets Java programs interoperate with a number of scripting languages. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Java, 4th Edition

Learning Java, 4th Edition

Patrick Niemeyer, Daniel Leuck
Head First Java, 3rd Edition

Head First Java, 3rd Edition

Kathy Sierra, Bert Bates, Trisha Gee
Learning Java, 6th Edition

Learning Java, 6th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
Java in a Nutshell, 7th Edition

Java in a Nutshell, 7th Edition

Benjamin J. Evans, David Flanagan

Publisher Resources

ISBN: 9780138051846