CHAPTER 10

image

Scripting in Java

In this chapter, you will learn

  • What scripting in Java is
  • How to execute scripts from Java and how to pass parameters to scripts
  • How the ScriptContext is used in executing scripts
  • How to use the Java programming language in scripts
  • How to implement a script engine
  • How to use the jrunscript and jjs command-line tools to execute scripts

What Is Scripting in Java?

Some believe that the Java Virtual Machine (JVM) can execute programs written only in the Java programming language. However, that is not true. The JVM executes language-neutral bytecode. It can execute programs written in any programming language, if the ...

Get Beginning Java 8 APIs, Extensions and Libraries Swing, JavaFX, JavaScript, JDBC and Network Programming APIs 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.