Documentation Contents

jrunscript - ???????????????????????????????????????

??????

jrunscript [ options ] [ arguments... ]

???????????????

options
?????????????????????????????????????????????????????????????????????????????????????????????
arguments
????????????????????????????????????????????????????????????????????????????????????????????????????????????

??????

jrunscript ??????????????????????????????????????????????????? jrunscript ??????????????? (???????????? - ?????? - ??????) ????????????????????? (-f ???????????????) ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? JavaScript ????????????-l ??????????????????????????????????????????????????????????????????jrunscript ??????Java ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

???: ????????????????????????????????????????????????????????? JDK ???????????????????????????????????????????????????????????????????????????

???????????????

-classpath path
?????????????????????????????????????????????????????????????????? .class ????????????????????????????????????????????????
-cp path
-classpath path ??????????????????
-Dname=value
Java ??????????????????????????????????????????????????????
-J<flag>
jrunscript ???????????????????????? Java ?????????????????? <flag> ??????????????????
-l language
?????????????????????????????????????????????????????????????????????????????? JavaScript ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? JAR ??????????????????????????????????????????????????? ???????????????-cp???-classpath ??????????????????????????????????????????????????????
-e script
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????1 ?????????????????????????????????????????????
-encoding encoding
???????????????????????????????????????????????????????????????????????????????????????????????????????????????
-f script-file
???????????????????????????????????????????????????????????? (??????????????????)???
-f -
??????????????????????????????????????????????????????????????????????????? (??????????????????)???
-help 
?????????????????????????????????????????????????????????
-? 
?????????????????????????????????????????????????????????
-q 
??????????????????????????????????????????????????????????????????????????????????????????????????????

??????

[arguments...] ?????????????????????????????? -e???-f ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????[arguments..] ???????????????????????? -e???-f ???????????????????????????????????????????????????????????????????????? [arguments..] ???????????????????????????????????????????????????[arguments..]???-e???-f ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????arguments????????????????????? String ???????????????????????????????????????????????????

???

???????????????????????????????????????

jrunscript -e "print('hello world')"
jrunscript -e "cat('http://java.sun.com')"

?????????????????????????????????????????????????????????????????????????????????????????????

jrunscript -l js -f test.js

??????????????????

jrunscript
js>print('hello world');
hello world
js>34 + 55
89
js> thread(function() { print('hello world'); }
hello world
js>

??????????????????????????????????????????????????????????????????????????????

jrunscript test.js arg1 arg2 arg3
test.js ???????????????????????????????????????????????????????????????arg1???arg2???????????? arg3 ??????????????????????????????????????????????????????????????????????????????????????????arguments????????????????????????????????????????????????????????????

????????????

JavaScript ???????????????????????????jrunscript ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? JavaScript ????????????????????????????????????jsdocs ??????????????????????????????


Copyright © 1995-2010 Sun Microsystems, Inc. All Rights Reserved.

Please send comments using this Feedback page.
Sun Microsystems, Inc.
Java Technology