23600
|
1 |
'\" t
|
|
2 |
.\" Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
|
|
3 |
.\" Title: jjs
|
|
4 |
.\" Language: English
|
|
5 |
.\" Date: 2013ǯ11��21��
|
|
6 |
.\" SectDesc: ���ܥġ���
|
|
7 |
.\" Software: JDK 8
|
|
8 |
.\" Arch: ����
|
|
9 |
.\"
|
|
10 |
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
11 |
.\"
|
|
12 |
.\" This code is free software; you can redistribute it and/or modify it
|
|
13 |
.\" under the terms of the GNU General Public License version 2 only, as
|
|
14 |
.\" published by the Free Software Foundation.
|
|
15 |
.\"
|
|
16 |
.\" This code is distributed in the hope that it will be useful, but WITHOUT
|
|
17 |
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
18 |
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
19 |
.\" version 2 for more details (a copy is included in the LICENSE file that
|
|
20 |
.\" accompanied this code).
|
|
21 |
.\"
|
|
22 |
.\" You should have received a copy of the GNU General Public License version
|
|
23 |
.\" 2 along with this work; if not, write to the Free Software Foundation,
|
|
24 |
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
25 |
.\"
|
|
26 |
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
27 |
.\" or visit www.oracle.com if you need additional information or have any
|
|
28 |
.\" questions.
|
|
29 |
.\"
|
|
30 |
.pl 99999
|
|
31 |
.TH "jjs" "1" "2013ǯ11��21��" "JDK 8" "���ܥġ���"
|
|
32 |
.\" -----------------------------------------------------------------
|
|
33 |
.\" * Define some portability stuff
|
|
34 |
.\" -----------------------------------------------------------------
|
|
35 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
36 |
.\" http://bugs.debian.org/507673
|
|
37 |
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
38 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
39 |
.ie \n(.g .ds Aq \(aq
|
|
40 |
.el .ds Aq '
|
|
41 |
.\" -----------------------------------------------------------------
|
|
42 |
.\" * set default formatting
|
|
43 |
.\" -----------------------------------------------------------------
|
|
44 |
.\" disable hyphenation
|
|
45 |
.nh
|
|
46 |
.\" disable justification (adjust text to left margin only)
|
|
47 |
.ad l
|
|
48 |
.\" -----------------------------------------------------------------
|
|
49 |
.\" * MAIN CONTENT STARTS HERE *
|
|
50 |
.\" -----------------------------------------------------------------
|
|
51 |
.SH "NAME"
|
|
52 |
jjs \- Nashorn�����ƤӽФ��ޤ���
|
|
53 |
.SH "����"
|
|
54 |
.sp
|
|
55 |
.if n \{\
|
|
56 |
.RS 4
|
|
57 |
.\}
|
|
58 |
.nf
|
|
59 |
\fIjjs\fR [\fIoptions\fR] [\fIscript\-files\fR] [\-\- \fIarguments\fR]
|
|
60 |
.fi
|
|
61 |
.if n \{\
|
|
62 |
.RE
|
|
63 |
.\}
|
|
64 |
.PP
|
|
65 |
\fIoptions\fR
|
|
66 |
.RS 4
|
|
67 |
����ʸ���Ƕ��ڤ�줿��\fIjjs\fR���ޥ�ɤ�1�İʾ�Υ��ץ���ܺ٤ϡ����ץ����Ȥ��Ƥ���������
|
|
68 |
.RE
|
|
69 |
.PP
|
|
70 |
\fIscript\-files\fR
|
|
71 |
.RS 4
|
|
72 |
����ʸ���Ƕ��ڤ�줿��Nashorn����Ѥ��Ʋ�᤹��1�İʾ�Υ�����ץȡ��ե����롣�ե����뤬���ꤵ��ʤ����ϡ����÷������뤬��ư����ޤ���
|
|
73 |
.RE
|
|
74 |
.PP
|
|
75 |
\fIarguments\fR
|
|
76 |
.RS 4
|
|
77 |
��ťϥ��եޡ�����(\fI\-\-\fR)�θ�Τ��٤Ƥ��ͤ��������Ȥ��ƥ�����ץȤޤ������÷���������Ϥ���ޤ����������ͤˤ�\fIarguments\fR�ץ��ѥƥ�����Ѥ��ƥ��������Ǥ��ޤ�(Example 3�Ȥ��Ƥ�������)��
|
|
78 |
.RE
|
|
79 |
.SH "����"
|
|
80 |
.PP
|
|
81 |
\fIjjs\fR���ޥ�ɥ饤�ġ������Ѥ���Nashorn�����ƤӽФ��ޤ����������Ѥ��ơ�1�Ĥޤ���ʣ���Υ�����ץȡ��ե�������ᤷ���ꡢ���÷��������¹Ԥ��뤳�Ȥ��Ǥ��ޤ���
|
|
82 |
.SH "���ץ����"
|
|
83 |
.PP
|
|
84 |
\fIjjs\fR���ޥ�ɤΥ��ץ����ϥ�����ץȤ�Nashorn�ˤ�äƲ�ᤵ���������椷�ޤ���
|
|
85 |
.PP
|
|
86 |
\-ccs=\fIsize\fR, \-\-class\-cache\-size=\fIsize\fR
|
|
87 |
.RS 4
|
|
88 |
���饹������å��塦��������Х���ñ�̤����ꤷ�ޤ��������Х���(KB)�������\fIk\fR�ޤ���\fIK\fR��ʸ�����ɲä����ᥬ�Х���(MB)�������\fIm\fR�ޤ���\fIM\fR��ʸ�����ɲä��������Х���(GB)�������\fIg\fR�ޤ���\fIG\fR���ɲä��ޤ����ǥե���ȤǤϡ����饹������å��塦��������50�Х��Ȥ����ꤵ��ޤ���������ϡ�1024�Х���(1 KB)�����ꤹ����ˡ���ޤ���
|
|
89 |
.sp
|
|
90 |
.if n \{\
|
|
91 |
.RS 4
|
|
92 |
.\}
|
|
93 |
.nf
|
|
94 |
\-css=100
|
|
95 |
\-css=1k
|
|
96 |
.fi
|
|
97 |
.if n \{\
|
|
98 |
.RE
|
|
99 |
.\}
|
|
100 |
.RE
|
|
101 |
.PP
|
|
102 |
\-co, \-\-compile\-only
|
|
103 |
.RS 4
|
|
104 |
������ץȤ�¹Ԥ����˥���ѥ��뤷�ޤ���
|
|
105 |
.RE
|
|
106 |
.PP
|
|
107 |
\-cp \fIpath\fR, \-\-classpath \fIpath\fR
|
|
108 |
.RS 4
|
|
109 |
���ݡ��Ȥ��륯�饹�ؤΥѥ�����ꤷ�ޤ���ʣ���Υѥ������ꤹ��ˤϡ����Υ��ץ������֤������ޤ��ϳƥѥ�����(:)�Ƕ��ڤ�ޤ���
|
|
110 |
.RE
|
|
111 |
.PP
|
|
112 |
\-D\fIname\fR=\fIvalue\fR
|
|
113 |
.RS 4
|
|
114 |
�ץ��ѥƥ�̾���ͤ������Ƥ뤳�Ȥǡ�������ץȤ��Ϥ������ƥࡦ�ץ��ѥƥ������ꤷ�ޤ���������ǡ����÷��⡼�ɤ�Nashorn��ƤӽФ��ơ�\fImyValue\fR��\fImyKey\fR�Ȥ���̾���Υץ��ѥƥ��˳�����Ƥ���ˡ���ޤ���
|
|
115 |
.sp
|
|
116 |
.if n \{\
|
|
117 |
.RS 4
|
|
118 |
.\}
|
|
119 |
.nf
|
|
120 |
>> \fBjjs \-DmyKey=myValue\fR
|
|
121 |
jjs> \fBjava\&.lang\&.System\&.getProperty("myKey")\fR
|
|
122 |
myValue
|
|
123 |
jjs>
|
|
124 |
.fi
|
|
125 |
.if n \{\
|
|
126 |
.RE
|
|
127 |
.\}
|
|
128 |
���Υ��ץ������֤����Ѥ���ȡ�ʣ���Υץ��ѥƥ�������Ǥ��ޤ���
|
|
129 |
.RE
|
|
130 |
.PP
|
|
131 |
\-d=\fIpath\fR, \-\-dump\-debug\-dir=\fIpath\fR
|
|
132 |
.RS 4
|
|
133 |
���饹���ե���������פ���ǥ��쥯�ȥ�ؤΥѥ�����ꤷ�ޤ���
|
|
134 |
.RE
|
|
135 |
.PP
|
|
136 |
\-\-debug\-lines
|
|
137 |
.RS 4
|
|
138 |
���饹���ե�������ι��ֹ�ɽ���������ޤ����ǥե���ȤǤϡ����Υ��ץ�����ͭ���ˤʤäƤ��ޤ���̵���ˤ���ˤ�\fI\-\-debug\-lines=false\fR����ꤷ�ޤ���
|
|
139 |
.RE
|
|
140 |
.PP
|
|
141 |
\-\-debug\-locals
|
|
142 |
.RS 4
|
|
143 |
���饹���ե�������Υ��������ѿ����������ޤ���
|
|
144 |
.RE
|
|
145 |
.PP
|
|
146 |
\-doe, \-\-dump\-on\-error
|
|
147 |
.RS 4
|
|
148 |
���顼��ȯ�������Ȥ��ˡ��ե롦�����å����ȥ졼�������ޤ����ǥե���ȤǤϡ���ñ�ʥ��顼����å������Τߤ����Ϥ���ޤ���
|
|
149 |
.RE
|
|
150 |
.PP
|
|
151 |
\-\-early\-lvalue\-error
|
|
152 |
.RS 4
|
|
153 |
̵���ʺ����ͼ���������顼�Ȥ���(�Ĥޤꡢ�����ɤ����Ϥ����Ȥ���)��𤵤�ޤ����ǥե���ȤǤϡ����Υ��ץ�����ͭ���ˤʤäƤ��ޤ���̵���ˤ���ˤ�\fI\-\-early\-lvalue\-error=false\fR����ꤷ�ޤ���̵���ʾ�硢̵���ʺ����ͼ��ϥ����ɤ��¹Ԥ����ޤ���𤵤�ޤ���
|
|
154 |
.RE
|
|
155 |
.PP
|
|
156 |
\-\-empty\-statements
|
|
157 |
.RS 4
|
|
158 |
����ʸ��Java����ݹ�ʸ�ĥ����¸���ޤ���
|
|
159 |
.RE
|
|
160 |
.PP
|
|
161 |
\-fv, \-\-fullversion
|
|
162 |
.RS 4
|
|
163 |
������Nashorn�С������ʸ�������Ϥ��ޤ���
|
|
164 |
.RE
|
|
165 |
.PP
|
|
166 |
\-\-function\-statement\-error
|
|
167 |
.RS 4
|
|
168 |
�ؿ��������ʸ�Ȥ��ƻ��Ѥ����ȥ��顼����å����������Ϥ���ޤ���
|
|
169 |
.RE
|
|
170 |
.PP
|
|
171 |
\-\-function\-statement\-warning
|
|
172 |
.RS 4
|
|
173 |
�ؿ��������ʸ�Ȥ��ƻ��Ѥ����ȷٹ��å����������Ϥ���ޤ���
|
|
174 |
.RE
|
|
175 |
.PP
|
|
176 |
\-fx
|
|
177 |
.RS 4
|
|
178 |
������ץȤ�JavaFX���ץꥱ�������Ȥ��Ƶ�ư���ޤ���
|
|
179 |
.RE
|
|
180 |
.PP
|
|
181 |
\-h, \-help
|
|
182 |
.RS 4
|
|
183 |
���ץ����Υꥹ�ȤȤ�����������Ϥ��ޤ���
|
|
184 |
.RE
|
|
185 |
.PP
|
|
186 |
\-J\fIoption\fR
|
|
187 |
.RS 4
|
|
188 |
���ꤷ��\fIjava\fR��ư���ץ�����JVM���Ϥ��ޤ���������ǡ����÷��⡼�ɤ�Nashorn��ƤӽФ��ơ�JVM�ˤ�äƻ��Ѥ�����������4 GB�����ꤹ����ˡ���ޤ���
|
|
189 |
.sp
|
|
190 |
.if n \{\
|
|
191 |
.RS 4
|
|
192 |
.\}
|
|
193 |
.nf
|
|
194 |
>> \fBjjs \-J\-Xmx4g\fR
|
|
195 |
jjs> \fBjava\&.lang\&.Runtime\&.getRuntime()\&.maxMemory()\fR
|
|
196 |
3817799680
|
|
197 |
jjs>
|
|
198 |
.fi
|
|
199 |
.if n \{\
|
|
200 |
.RE
|
|
201 |
.\}
|
|
202 |
���Υ��ץ������֤����Ѥ���ȡ�ʣ����\fIjava\fR���ޥ�ɡ����ץ������Ϥ����Ȥ��Ǥ��ޤ���
|
|
203 |
.RE
|
|
204 |
.PP
|
|
205 |
\-\-lazy\-compilation
|
|
206 |
.RS 4
|
|
207 |
�쥤������������������ά(�Ĥޤꡢ������ץ����Τ����٤˥���ѥ��뤵��ʤ�)��ͭ���ˤ��ޤ������Υ��ץ����ϻŪ�ʤ�ΤǤ���
|
|
208 |
.RE
|
|
209 |
.PP
|
|
210 |
\-\-loader\-per\-compile
|
|
211 |
.RS 4
|
|
212 |
����ѥ��뤴�Ȥ˿��������饹������������������ޤ����ǥե���ȤǤϡ����Υ��ץ�����ͭ���ˤʤäƤ��ޤ���̵���ˤ���ˤ�\fI\-\-loader\-per\-compile=false\fR����ꤷ�ޤ���
|
|
213 |
.RE
|
|
214 |
.PP
|
|
215 |
\-\-log=\fIsubsystem\fR:\fIlevel\fR
|
|
216 |
.RS 4
|
|
217 |
���ꤵ�줿���֥����ƥ���Ф��ơ�����Υ�٥�ǥ�����¹Ԥ��ޤ�������ޤǶ��ڤä�ʣ���Υ��֥����ƥ�Υ�������٥�����Ǥ��ޤ�����������ޤ���
|
|
218 |
.sp
|
|
219 |
.if n \{\
|
|
220 |
.RS 4
|
|
221 |
.\}
|
|
222 |
.nf
|
|
223 |
\-\-log=fields:finest,codegen:info
|
|
224 |
.fi
|
|
225 |
.if n \{\
|
|
226 |
.RE
|
|
227 |
.\}
|
|
228 |
.RE
|
|
229 |
.PP
|
|
230 |
\-\-package=\fIname\fR
|
|
231 |
.RS 4
|
|
232 |
�������줿���饹���ե�������ɲä���ѥå���������ꤷ�ޤ���
|
|
233 |
.RE
|
|
234 |
.PP
|
|
235 |
\-\-parse\-only
|
|
236 |
.RS 4
|
|
237 |
����ѥ��뤻���˥����ɤ���Ϥ��ޤ���
|
|
238 |
.RE
|
|
239 |
.PP
|
|
240 |
\-\-print\-ast
|
|
241 |
.RS 4
|
|
242 |
��ݹ�ʸ�ĥ����Ϥ��ޤ���
|
|
243 |
.RE
|
|
244 |
.PP
|
|
245 |
\-\-print\-code
|
|
246 |
.RS 4
|
|
247 |
�Х��ȥ����ɤ���Ϥ��ޤ���
|
|
248 |
.RE
|
|
249 |
.PP
|
|
250 |
\-\-print\-lower\-ast
|
|
251 |
.RS 4
|
|
252 |
���겼������ݹ�ʸ�ĥ����Ϥ��ޤ���
|
|
253 |
.RE
|
|
254 |
.PP
|
|
255 |
\-\-print\-lower\-parse
|
|
256 |
.RS 4
|
|
257 |
���겼�������ϥĥ����Ϥ��ޤ���
|
|
258 |
.RE
|
|
259 |
.PP
|
|
260 |
\-\-print\-no\-newline
|
|
261 |
.RS 4
|
|
262 |
����¾��\fI\-\-print*\fR���ץ����Ƕ���Ū��1�Ԥǽ��Ϥ��ޤ���
|
|
263 |
.RE
|
|
264 |
.PP
|
|
265 |
\-\-print\-parse
|
|
266 |
.RS 4
|
|
267 |
���ϥĥ����Ϥ��ޤ���
|
|
268 |
.RE
|
|
269 |
.PP
|
|
270 |
\-\-print\-symbols
|
|
271 |
.RS 4
|
|
272 |
����ɽ����Ϥ��ޤ���
|
|
273 |
.RE
|
|
274 |
.PP
|
|
275 |
\-pcs, \-\-profile\-callsites
|
|
276 |
.RS 4
|
|
277 |
�ƤӽФ������ȤΥץ��ե����롦�ǡ��������פ��ޤ���
|
|
278 |
.RE
|
|
279 |
.PP
|
|
280 |
\-scripting
|
|
281 |
.RS 4
|
|
282 |
������Υ�����ץȵ�ǽ��ͭ���ˤ��ޤ���
|
|
283 |
.RE
|
|
284 |
.PP
|
|
285 |
\-\-stderr=\fIfilename\fR|\fIstream\fR|\fItty\fR
|
|
286 |
.RS 4
|
|
287 |
ɸ�२�顼�����ȥ�����ꤷ���ե����롢���ȥ��(���Ȥ���\fIstdout\fR)�ˡ��ޤ��ϥƥ�����ü���˥�����쥯�Ȥ��ޤ���
|
|
288 |
.RE
|
|
289 |
.PP
|
|
290 |
\-\-stdout=\fIfilename\fR|\fIstream\fR|\fItty\fR
|
|
291 |
.RS 4
|
|
292 |
ɸ����ϥ��ȥ�����ꤷ���ե����롢���ȥ��(���Ȥ���\fIstderr\fR)�ˡ��ޤ��ϥƥ�����ü���˥�����쥯�Ȥ��ޤ���
|
|
293 |
.RE
|
|
294 |
.PP
|
|
295 |
\-strict
|
|
296 |
.RS 4
|
|
297 |
ɸ��(ECMAScript Edition 5\&.1)�ؤν�������strict�⡼�ɤ�ͭ���ˤ�������ˤ�궦�̤Υ����ǥ������顼���ñ�˸��ФǤ���褦�ˤʤ�ޤ���
|
|
298 |
.RE
|
|
299 |
.PP
|
|
300 |
\-t=\fIzone\fR, \-timezone=\fIzone\fR
|
|
301 |
.RS 4
|
|
302 |
������ץȤμ¹Ԥ��Ф����ꤷ�������ॾ��������ꤷ�ޤ���OS�����ꤵ�줿�����ॾ������С��饤�ɤ���\fIDate\fR���֥������Ȥǻ��Ѥ���ޤ���
|
|
303 |
.RE
|
|
304 |
.PP
|
|
305 |
\-tcs=\fIparameter\fR, \-\-trace\-callsites=\fIparameter\fR
|
|
306 |
.RS 4
|
|
307 |
�ƽФ������ȤΥȥ졼���Υ⡼�ɤ�ͭ���ˤ��ޤ������Ѳ�ǽ�ʥѥ����ϡ����ΤȤ���Ǥ���
|
|
308 |
.PP
|
|
309 |
miss
|
|
310 |
.RS 4
|
|
311 |
�ƽФ������ȤΥߥ���ȥ졼�����ޤ���
|
|
312 |
.RE
|
|
313 |
.PP
|
|
314 |
enterexit
|
|
315 |
.RS 4
|
|
316 |
�ƽФ������Ȥؤν������ȥ졼�����ޤ���
|
|
317 |
.RE
|
|
318 |
.PP
|
|
319 |
objects
|
|
320 |
.RS 4
|
|
321 |
���֥������ȤΥץ��ѥƥ�����Ϥ��ޤ���
|
|
322 |
.RE
|
|
323 |
.RE
|
|
324 |
.PP
|
|
325 |
\-\-verify\-code
|
|
326 |
.RS 4
|
|
327 |
�Х��ȥ����ɤ�¹Ԥ������˸��ڤ��ޤ���
|
|
328 |
.RE
|
|
329 |
.PP
|
|
330 |
\-v, \-version
|
|
331 |
.RS 4
|
|
332 |
Nashorn�С������ʸ�������Ϥ��ޤ���
|
|
333 |
.RE
|
|
334 |
.PP
|
|
335 |
\-xhelp
|
|
336 |
.RS 4
|
|
337 |
���ޥ�ɥ饤���ץ����γ�ĥ�إ�פ���Ϥ��ޤ���
|
|
338 |
.RE
|
|
339 |
.SH "��"
|
|
340 |
.PP
|
|
341 |
\fBExample 1\fR, Nashorn����Ѥ���������ץȤμ¹�
|
|
342 |
.RS 4
|
|
343 |
.sp
|
|
344 |
.if n \{\
|
|
345 |
.RS 4
|
|
346 |
.\}
|
|
347 |
.nf
|
|
348 |
jjs script\&.js
|
|
349 |
.fi
|
|
350 |
.if n \{\
|
|
351 |
.RE
|
|
352 |
.\}
|
|
353 |
.RE
|
|
354 |
.PP
|
|
355 |
\fBExample 2\fR, ���÷��⡼�ɤǤ�Nashorn�μ¹�
|
|
356 |
.RS 4
|
|
357 |
.sp
|
|
358 |
.if n \{\
|
|
359 |
.RS 4
|
|
360 |
.\}
|
|
361 |
.nf
|
|
362 |
>> \fBjjs\fR
|
|
363 |
jjs> \fBprintln("Hello, World!")\fR
|
|
364 |
Hello, World!
|
|
365 |
jjs> \fBquit()\fR
|
|
366 |
>>
|
|
367 |
.fi
|
|
368 |
.if n \{\
|
|
369 |
.RE
|
|
370 |
.\}
|
|
371 |
.RE
|
|
372 |
.PP
|
|
373 |
\fBExample 3\fR, Nashorn�ؤΰ������Ϥ�
|
|
374 |
.RS 4
|
|
375 |
.sp
|
|
376 |
.if n \{\
|
|
377 |
.RS 4
|
|
378 |
.\}
|
|
379 |
.nf
|
|
380 |
>> \fBjjs \-\- a b c\fR
|
|
381 |
jjs> \fBarguments\&.join(", ")\fR
|
|
382 |
a, b, c
|
|
383 |
jjs>
|
|
384 |
.fi
|
|
385 |
.if n \{\
|
|
386 |
.RE
|
|
387 |
.\}
|
|
388 |
.RE
|
|
389 |
.SH "��Ϣ����"
|
|
390 |
.PP
|
|
391 |
\fIjrunscript\fR
|
|
392 |
.br
|
|
393 |
'pl 8.5i
|
|
394 |
'bp
|