Downloading and Installing JDK 10

This section describes how to download and install Java SE 10 on Windows.

"jrunscript": A command line script shell included in the current version JDK (Java Development Kit) from Oracle.com. "jrunscript" supports both an interactive (read-eval-print) mode and a batch (-f option) mode of script execution. This is a scripting language independent shell. By default, JavaScript is the language used, but the -l option can be used to specify a different language.

"jrunscript" allows you to run JavaScript code in a stand alone mode without using any Web browsers. In order to try "jrunscript", you have to have a copy of JDK installed on your machine.

Here is what I did to download and install JDK 10 on my Windows machine.

To test the installation, open a command window to try the java command. If you are getting the following output, your installation was ok:

C:\herong>\progra~1\java\jdk-10.0.1\bin\java -version
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

Table of Contents

 About This Book

 Introduction to JavaScript

 ECMAScript Language Specification and JavaScript Dialects

 Data Types, Variables and Expressions

 Flow Control Statements

 Creating, Accessing, and Manipulating Arrays

 Defining and Calling Functions

 Web Browser Supporting JavaScript

 Server-Side and Client-Side Web Scripting

 Introduction to Objects

 Defining Your Own Object Types

 Inheritance of Properties and Methods through the Prototype Object Chain

'jrunscript' - JavaScript Shell Command from JDK

Downloading and Installing JDK 10

 "jrunscript" - Scripting Shell Command and Options

 Running JavaScript Code with 'jrunscript'

 Evaluating JavaScript Code with 'jrunscript' Interactively

 Running a JavaScript Code File with 'jrunscript'

 Using Functions as "Function" Objects

 Introduction to Built-in Object Types

 W3C's Document Object Model (DOM) Specifications

 AJAX (Asynchronous JavaScript And XML)

 References

 Full Version in PDF/EPUB