src/jdk.scripting.nashorn.shell/share/man/jjs.1
author naoto
Tue, 12 Nov 2019 14:05:18 -0800
changeset 59043 1a79b4bfc85a
parent 55140 d4890c3721be
permissions -rw-r--r--
8232860: Error formatting integer values with MessageFormat.format() using HOST provider Reviewed-by: rriggs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
     1
.\" Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     2
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     3
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     4
.\" This code is free software; you can redistribute it and/or modify it
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     5
.\" under the terms of the GNU General Public License version 2 only, as
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     6
.\" published by the Free Software Foundation.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     7
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     8
.\" This code is distributed in the hope that it will be useful, but WITHOUT
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     9
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    10
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    11
.\" version 2 for more details (a copy is included in the LICENSE file that
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    12
.\" accompanied this code).
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    13
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    14
.\" You should have received a copy of the GNU General Public License version
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    15
.\" 2 along with this work; if not, write to the Free Software Foundation,
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    16
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    17
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    18
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    19
.\" or visit www.oracle.com if you need additional information or have any
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    20
.\" questions.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    21
.\"
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    22
.\" Automatically generated by Pandoc 2.3.1
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents:
diff changeset
    23
.\"
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    24
.TH "JJS" "1" "2018" "JDK 13" "JDK Commands"
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    25
.hy
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    26
.SH NAME
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    27
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    28
jjs \- command\-line tool to invoke the Nashorn engine
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    29
.SH SYNOPSIS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    30
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    31
\f[B]Note:\f[R] The \f[CB]jjs\f[R] tool and the Nashorn engine are
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    32
deprecated in JDK 11 in preparation for removal in a future release.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    33
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    34
\f[CB]jjs\f[R] [\f[I]options\f[R]] \f[I]script\-files\f[R] [\f[CB]\-\-\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    35
\f[I]arguments\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    36
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    37
.B \f[I]options\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    38
This represents one or more options of the \f[CB]jjs\f[R] command,
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    39
separated by spaces.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    40
See \f[B]Options for the jjs Command\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    41
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    42
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    43
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    44
.B \f[I]script\-files\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    45
This represents one or more script files that you want to interpret
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    46
using the Nashorn engine, separated by spaces.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    47
If no files are specified, then an interactive shell is started.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    48
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    49
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    50
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    51
.B \f[I]arguments\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    52
All values after the double hyphen marker (\f[CB]\-\-\f[R]) are passed
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    53
through to the script or the interactive shell as arguments.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    54
These values can be accessed by using the \f[CB]arguments\f[R] property.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    55
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    56
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    57
.SH DESCRIPTION
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    58
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    59
The \f[CB]jjs\f[R] command\-line tool is used to invoke the Nashorn
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    60
engine.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    61
You can use it to interpret one or several script files, or to run an
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    62
interactive shell.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    63
.SH OPTIONS FOR THE JJS COMMAND
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    64
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    65
The options of the \f[CB]jjs\f[R] command control the conditions under
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    66
which scripts are interpreted by Nashorn engine.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    67
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    68
.B \f[CB]\-D\f[R]\f[I]name\f[R]\f[CB]=\f[R]\f[I]value\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    69
Sets a system property to be passed to the script by assigning a value
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    70
to a property name.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    71
The following example shows how to invoke Nashorn engine in interactive
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    72
mode and assign \f[CB]myValue\f[R] to the property named \f[CB]myKey\f[R]:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    73
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    74
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    75
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    76
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    77
>>\ jjs\ \-DmyKey=myValue
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    78
jjs>\ java.lang.System.getProperty("myKey")
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    79
myValue
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    80
jjs>
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    81
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    82
.fi
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    83
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    84
This option can be repeated to set multiple properties.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    85
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    86
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    87
.B \f[CB]\-\-add\-modules\f[R] \f[I]modules\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    88
Specifies the root user Java modules.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    89
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    90
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    91
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    92
.B \f[CB]\-cp\f[R] \f[I]path\f[R] or \f[CB]\-classpath\f[R] \f[I]path\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    93
Specifies the path to the supporting class files.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    94
To set multiple paths, the option can be repeated, or you can separate
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    95
each path with the following character:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    96
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    97
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    98
\f[B]Oracle Solaris, Linux, and OS X:\f[R] Colon (\f[CB]:\f[R])
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    99
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   100
\f[B]Windows:\f[R] Semicolon (\f[CB];\f[R])
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   101
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   102
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   103
.B \f[CB]\-doe=\f[R][\f[CB]true\f[R]|\f[CB]false\f[R]] or \f[CB]\-dump\-on\-error=\f[R][\f[CB]true\f[R]|\f[CB]false\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   104
Provides a full stack trace when an error occurs.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   105
By default, only a brief error message is printed.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   106
The default parameter is \f[CB]false\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   107
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   108
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   109
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   110
.B \f[CB]\-fv=\f[R][\f[CB]true\f[R]|\f[CB]false\f[R]] or \f[CB]\-fullversion=\f[R][\f[CB]true\f[R]|\f[CB]false\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   111
Prints the full Nashorn version string.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   112
The default parameter is \f[CB]false\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   113
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   114
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   115
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   116
.B \f[CB]\-fx=\f[R][\f[CB]true\f[R]|\f[CB]false\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   117
Launches the script as a JavaFX application.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   118
The default parameter is \f[CB]false\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   119
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   120
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   121
\f[B]Note:\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   122
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   123
You must explicitly add the JavaFX modules to launch the script as a
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   124
JavaFX application.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   125
The following example specifies the location of the JavaFX modules and
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   126
adds them with the \f[CB]\-\-module\-path\f[R] and
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   127
\f[CB]\-\-add\-modules\f[R] options:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   128
.IP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   129
.nf
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   130
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   131
jjs\ \-fx\ \-\-module\-path\ /SOMEDIR/javafx\-sdk\-11/lib\ \-\-add\-modules\ javafx.controls\ HelloWorld.js
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   132
\f[R]
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   133
.fi
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   134
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   135
The following example uses the \f[CB]jlink\f[R] command to create a custom
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   136
runtime image that contains the JavaFX modules.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   137
The example then launches a script as a JavaFX application without
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   138
specifying the JavaFX modules in the \f[CB]jjs\f[R] command:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   139
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   140
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   141
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   142
jlink\ \-\-module\-path\ /SOMEDIR/javafx\-jmods\-11\ \-\-add\-modules\ jdk.scripting.nashorn,jdk.scripting.nashorn.shell,javafx.controls\ \-\-output\ /SOMEDIR/myjdk
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   143
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   144
/SOMEDIR/myjdk/bin/jjs\ \-fx\ HelloWorld.js
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   145
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   146
.fi
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   147
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   148
If you don\[aq]t explicitly specify the JavaFX modules, then the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   149
\f[CB]jjs\f[R] command prints a message and exits:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   150
.IP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   151
.nf
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   152
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   153
jjs\ \-fx\ HelloWorld.js
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   154
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   155
JavaFX\ is\ not\ available.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   156
\f[R]
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   157
.fi
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   158
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   159
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   160
.B \f[CB]\-h\f[R] or \f[CB]\-help\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   161
Prints the list of options and their descriptions.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   162
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   163
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   164
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   165
.B \f[CB]\-\-language=\f[R][\f[CB]es5\f[R]|\f[CB]es6\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   166
Specifies the ECMAScript language version.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   167
The default version is ES5.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   168
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   169
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   170
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   171
.B \f[CB]\-\-module\-path\f[R] \f[I]path\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   172
Specifies where to find user Java modules.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   173
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   174
.RE
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   175
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   176
.B \f[CB]\-ot=\f[R][\f[CB]true\f[R]|\f[CB]false\f[R]] or \f[CB]\-optimistic\-types=\f[R][\f[CB]true\f[R]|\f[CB]false\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   177
Enables or disables optimistic type assumptions with deoptimizing
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   178
recompilation.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   179
This makes the compiler try, for any program symbol whose type can\[aq]t
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   180
be proven at compile time, to type it as narrowly and primitively as
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   181
possible.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   182
If the runtime encounters an error because the symbol type is too
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   183
narrow, then a wider method is generated until a steady stage is
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   184
reached.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   185
While this produces as optimal Java bytecode as possible, erroneous type
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   186
guesses will lead to longer warmup.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   187
Optimistic typing is currently enabled by default, but it can be
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   188
disabled for faster startup performance.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   189
The default parameter is \f[CB]true\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   190
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   191
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   192
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   193
.B \f[CB]\-scripting=\f[R][\f[CB]true\f[R]|\f[CB]false\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   194
Enables a shell scripting features.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   195
The default parameter is \f[CB]true\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   196
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   197
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   198
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   199
.B \f[CB]\-strict=\f[R][\f[CB]true\f[R]|\f[CB]false\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   200
Enables a strict mode, which enforces stronger adherence to the standard
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   201
(ECMAScript Edition 5.1), making it easier to detect common coding
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   202
errors.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   203
The default parameter is \f[CB]false\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   204
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   205
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   206
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   207
.B \f[CB]\-t=\f[R]\f[I]zone\f[R] or \f[CB]\-timezone=\f[R]\f[I]zone\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   208
Sets the specified time zone for script execution.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   209
It overrides the time zone set in the OS and used by the \f[CB]Date\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   210
object.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   211
The default \f[I]zone\f[R] is \f[CB]America/Los_Angeles\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   212
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   213
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   214
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   215
.B \f[CB]\-v=\f[R][\f[CB]true\f[R]|\f[CB]false\f[R]] or\f[CB]\-version=\f[R][\f[CB]true\f[R]|\f[CB]false\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   216
Prints the Nashorn version string.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   217
The default parameter is \f[CB]false\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   218
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   219
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   220
.SH EXAMPLE OF RUNNING A SCRIPT WITH NASHORN
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   221
.IP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   222
.nf
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   223
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   224
jjs\ script.js
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   225
\f[R]
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   226
.fi
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   227
.SH EXAMPLE OF RUNNING NASHORN IN INTERACTIVE MODE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   228
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   229
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   230
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   231
>>\ jjs
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   232
jjs>\ println("Hello,\ World!")
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   233
Hello,\ World!
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   234
jjs>\ quit()
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   235
>>
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   236
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   237
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   238
.SH EXAMPLE OF PASSING ARGUMENTS TO NASHORN
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   239
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   240
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   241
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   242
>>\ jjs\ \-\-\ a\ b\ c
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   243
jjs>\ arguments.join(",\ ")
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   244
a,\ b,\ c
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   245
jjs>
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   246
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   247
.fi