jjs.1 revision 12442:aa8e52dfeee9
t
Copyright (c) 1994, 2014, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation.

This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).

You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
or visit www.oracle.com if you need additional information or have any
questions.

Title: jjs
Language: Japanese
Date: 2015��3��3��
SectDesc: ����������
Software: JDK 8
Arch: ����
Part Number: E58103-01
Doc ID: JSSON

"jjs" "1" "2015��3��3��" "JDK 8" "����������"
-----------------------------------------------------------------
* Define some portability stuff
-----------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://bugs.debian.org/507673
http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------
* set default formatting
-----------------------------------------------------------------
disable hyphenation
disable justification (adjust text to left margin only)
-----------------------------------------------------------------
* MAIN CONTENT STARTS HERE *
-----------------------------------------------------------------
"����"
jjs - Nashorn������������������������
"����"

.\}

jjs [options] [script-files] [-- arguments]
.\}

options

����������������������jjs����������1����������������������������������������������������������

script-files

����������������������Nashorn������������������1����������������������������������������������������������������������������������������

arguments

����������������������(--)��������������������������������������������������������������������������������������arguments������������������������������������(Example 3������������������)��

"����"

jjs��������������������������Nashorn����������������������������������������1��������������������������������������������������������������������������������������

"����������"

jjs����������������������������������Nashorn������������������������������������

-ccs=size

--class-cache-size=size

��������������������������������������������������������������(KB)������������k������K��������������������������(MB)������������m������M��������������������������(GB)������������g������G����������������������������������������������������������50��������������������������������1024������(1 KB)��������������������������

.\}

-css=100
-css=1k
 
.\}

-co

--compile-only

����������������������������������������

-cp path

-classpath path

������������������������������������������������������������������������������������������������������������������(:)��������������

-Dname=value

��������������������������������������������������������������������������������������������������������������Nashorn��������������myValue��myKey��������������������������������������������������

.\}

>> jjs -DmyKey=myValue
jjs> java.lang.System.getProperty("myKey")
myValue
jjs>
 
.\} ��������������������������������������������������������������������

-d=path

--dump-debug-dir=path

��������������������������������������������������������������

--debug-lines

������������������������������������������������������������������������������������������������������������--debug-lines=false��������������

--debug-locals

����������������������������������������������

-doe

--dump-on-error

��������������������������������������������������������������������������������������������������������������������������

--early-lvalue-error

��������������������������������(��������������������������������)��������������������������������������������������������������������������������--early-lvalue-error=false��������������������������������������������������������������������������������

--empty-statements

��������Java������������������������������

-fv

--fullversion

������Nashorn������������������������������

--function-statement-error

������������������������������������������������������������������

--function-statement-warning

��������������������������������������������������������������

-fx

������������JavaFX����������������������������������

-h

-help

������������������������������������������

-Joption

��������java����������������JVM������������������������������������Nashorn��������������JVM��������������������������������4 GB��������������������������

.\}

>> jjs -J-Xmx4g
jjs> java.lang.Runtime.getRuntime().maxMemory()
3817799680
jjs>
 
.\} ������������������������������������������java������������������������������������������

--language=[es5]

ECMAScript����������������������������������������������������ES5������

--lazy-compilation

������������������������(������������������������������������������������)��������������������������������������������������

--loader-per-compile

����������������������������������������������������������������������������������������������������������������������--loader-per-compile=false��������������

--log=subsystem:level

����������������������������������������������������������������������������������������������������������������������������������������������������������

.\}

--log=fields:finest,codegen:info
.\}

--optimistic-types=[true|false]

����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

--package=name

������������������������������������������������������������

--parse-only

������������������������������������

--print-ast

����������������������������

--print-code

��������������������������

--print-lower-ast

��������������������������������������

--print-lower-parse

����������������������������������

--print-no-newline

��������--print*��������������������1����������������

--print-parse

������������������������

--print-symbols

��������������������

-pcs

--profile-callsites

����������������������������������������������������

-scripting

��������������������������������������

--stderr=filename|stream|tty

����������������������������������������������������(��������stdout)��������������������������������������������

--stdout=filename|stream|tty

������������������������������������������������(��������stderr)��������������������������������������������

-strict

����(ECMAScript Edition 5.1)������������������strict����������������������������������������������������������������������������������������

-t=zone

-timezone=zone

��������������������������������������������������������OS��������������������������������������������Date����������������������������

-tcs=parameter

--trace-callsites=parameter

��������������������������������������������������������������������������������������

miss

������������������������������������

enterexit

����������������������������������������

objects

��������������������������������������

--verify-code

��������������������������������������

-v

-version

Nashorn������������������������������

-xhelp

����������������������������������������������

"��"

�� 1 Nashorn��������������������������

.\}

jjs script.js
 
.\}

�� 2 ����������������Nashorn������

.\}

>> jjs
jjs> println("Hello, World!")
Hello, World!
jjs> quit()
>>
 
.\}

�� 3 Nashorn��������������

.\}

>> jjs -- a b c
jjs> arguments.join(", ")
a, b, c
jjs>
 
.\}
"��������"

jrunscript

'pl 8.5i 'bp