Home

This Chapter
-Chapter 2: Dynamic Compilation
-The Compiler Framework
-Using JavaCompilerTool
-Using Diagnostics
-Summary

Table of Contents
-Introduction
-Chapter 1: Core Libraries
-Chapter 2: Dynamic Compilation
-Chapter 3: Scripting
-Chapter 4: Networking
-Chapter 5: Swing Updates
-Chapter 6: Abstract Window Toolkit
-Chapter 7: Internationalization
-Chapter 8: Java Database Connectivity 4.0
-Chapter 9: XML Digital Signature API
-Chapter 10: Streaming API for XML
-Chapter 11: Java Architecture for XML Binding
-Chapter 12: Web Services
-Chapter 13: JavaBeans Activation Framework
-Chapter 14: User-Defined MXBeans
-Chapter 15: Concurrency Updates
-Appendix A: Enums
-Appendix B: Generics
-Appendix C: Annotations

Previous
Next

 

Chapter 2

Dynamic Compilation

One of the JSR implementations included in Java 6 is that of JSR 199, Java Compiler API (http://jcp.org/en/jsr/detail?id=199). This JSR specifies a set of interfaces that allow Java programs to invoke and run a Java compiler programmatically. An implementation of JSR 199 is also called the Java Compiler Framework, which takes the form of the interfaces and classes in the javax.tools package.

This chapter introduces this new technology and shows how to use it.

Previous
Next