source: arduino-1-6-7/trunk/fuentes/arduino-ide-amd64/java/man/man1/jjs.1 @ 4837

Last change on this file since 4837 was 4837, checked in by daduve, 2 years ago

Adding new version

File size: 4.8 KB
Line 
1'\" t
2.\" Copyright (c) 1994, 2015, Oracle and/or its affiliates. All rights reserved.
3.\"
4.\" Title: jjs
5.\" Language: English
6.\" Date: 03 March 2015
7.\" SectDesc: Basic Tools
8.\" Software: JDK 8
9.\" Arch: generic
10.\" Part Number: E38209-04
11.\" Doc ID: JSSOR
12.\"
13.if n .pl 99999
14.TH "jjs" "1" "03 March 2015" "JDK 8" "Basic Tools"
15.\" -----------------------------------------------------------------
16.\" * Define some portability stuff
17.\" -----------------------------------------------------------------
18.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19.\" http://bugs.debian.org/507673
20.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
21.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22.ie \n(.g .ds Aq \(aq
23.el       .ds Aq '
24.\" -----------------------------------------------------------------
25.\" * set default formatting
26.\" -----------------------------------------------------------------
27.\" disable hyphenation
28.nh
29.\" disable justification (adjust text to left margin only)
30.ad l
31.\" -----------------------------------------------------------------
32.\" * MAIN CONTENT STARTS HERE *
33.\" -----------------------------------------------------------------
34.SH "NAME"
35jjs \- Invokes the Nashorn engine\&.
36.SH "SYNOPSIS"
37.sp
38.if n \{\
39.RS 4
40.\}
41.nf
42\fB\fBjjs\fR\fR\fB [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIscript\-files\fR\fR\fB] [\-\- \fR\fB\fIarguments\fR\fR\fB]\fR
43.fi
44.if n \{\
45.RE
46.\}
47.PP
48\fIoptions\fR
49.RS 4
50One or more options of the
51\fBjjs\fR
52command, separated by spaces\&. For more information, see Options\&.
53.RE
54.PP
55\fIscript\-files\fR
56.RS 4
57One or more script files which you want to interpret using Nashorn, separated by spaces\&. If no files are specified, an interactive shell is started\&.
58.RE
59.PP
60\fIarguments\fR
61.RS 4
62All values after the double hyphen marker (\fB\-\-\fR) are passed through to the script or the interactive shell as arguments\&. These values can be accessed by using the
63\fBarguments\fR
64property (see Example 3)\&.
65.RE
66.SH "DESCRIPTION"
67.PP
68The
69\fBjjs\fR
70command\-line tool is used to invoke the Nashorn engine\&. You can use it to interpret one or several script files, or to run an interactive shell\&.
71.SH "OPTIONS"
72.PP
73The options of the
74\fBjjs\fR
75command control the conditions under which scripts are interpreted by Nashorn\&.
76.PP
77\-cp \fIpath\fR
78.br
79\-classpath \fIpath\fR
80.RS 4
81Specifies the path to the supporting class files To set multiple paths, the option can be repeated, or you can separate each path with a colon (:)\&.
82.RE
83.PP
84\-D\fIname\fR=\fIvalue\fR
85.RS 4
86Sets a system property to be passed to the script by assigning a value to a property name\&. The following example shows how to invoke Nashorn in interactive mode and assign
87\fBmyValue\fR
88to the property named
89\fBmyKey\fR:
90.sp
91.if n \{\
92.RS 4
93.\}
94.nf
95\fB>> \fR\fB\fBjjs \-DmyKey=myValue\fR\fR
96\fBjjs> \fR\fB\fBjava\&.lang\&.System\&.getProperty("myKey")\fR\fR
97\fBmyValue\fR
98\fBjjs>\fR
99 
100.fi
101.if n \{\
102.RE
103.\}
104This option can be repeated to set multiple properties\&.
105.RE
106.PP
107\-doe
108.br
109\-\-dump\-on\-error
110.RS 4
111Provides a full stack trace when an error occurs\&. By default, only a brief error message is printed\&.
112.RE
113.PP
114\-fv
115.br
116\-\-fullversion
117.RS 4
118Prints the full Nashorn version string\&.
119.RE
120.PP
121\-fx
122.RS 4
123Launches the script as a JavaFX application\&.
124.RE
125.PP
126\-h
127.br
128\-help
129.RS 4
130Prints the list of options and their descriptions\&.
131.RE
132.PP
133\-\-language=[es5]
134.RS 4
135Specifies the ECMAScript language version\&. The default version is ES5\&.
136.RE
137.PP
138\-ot
139.br
140\-\-optimistic\-types=[true|false]
141.RS 4
142Enables or disables optimistic type assumptions with deoptimizing recompilation\&. Running with optimistic types will yield higher final speed, but may increase warmup time\&.
143.RE
144.PP
145\-scripting
146.RS 4
147Enables shell scripting features\&.
148.RE
149.PP
150\-strict
151.RS 4
152Enables strict mode, which enforces stronger adherence to the standard (ECMAScript Edition 5\&.1), making it easier to detect common coding errors\&.
153.RE
154.PP
155\-t=\fIzone\fR
156.br
157\-timezone=\fIzone\fR
158.RS 4
159Sets the specified time zone for script execution\&. It overrides the time zone set in the OS and used by the
160\fBDate\fR
161object\&.
162.RE
163.PP
164\-v
165.br
166\-version
167.RS 4
168Prints the Nashorn version string\&.
169.RE
170.SH "EXAMPLES"
171.PP
172\fBExample 1 \fRRunning a Script with Nashorn
173.RS 4
174.sp
175.if n \{\
176.RS 4
177.\}
178.nf
179\fBjjs script\&.js\fR
180 
181.fi
182.if n \{\
183.RE
184.\}
185.RE
186.PP
187\fBExample 2 \fRRunning Nashorn in Interactive Mode
188.RS 4
189.sp
190.if n \{\
191.RS 4
192.\}
193.nf
194\fB>> \fR\fB\fBjjs\fR\fR
195\fBjjs> \fR\fB\fBprintln("Hello, World!")\fR\fR
196\fBHello, World!\fR
197\fBjjs> \fR\fB\fBquit()\fR\fR
198\fB>>\fR
199 
200.fi
201.if n \{\
202.RE
203.\}
204.RE
205.PP
206\fBExample 3 \fRPassing Arguments to Nashorn
207.RS 4
208.sp
209.if n \{\
210.RS 4
211.\}
212.nf
213\fB>> \fR\fB\fBjjs \-\- a b c\fR\fR
214\fBjjs> \fR\fB\fBarguments\&.join(", ")\fR\fR
215\fBa, b, c\fR
216\fBjjs>\fR
217 
218.fi
219.if n \{\
220.RE
221.\}
222.RE
223.SH "SEE ALSO"
224.PP
225\fBjrunscript\fR
226.br
227'pl 8.5i
228'bp
Note: See TracBrowser for help on using the repository browser.