Spec-Zone .ru
спецификации, руководства, описания, API

Print-friendly VersionPrint-friendly Version    Download Documentation

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 ??????????????????????????????


Discuss
We welcome your participation in our community. Please keep your comments civil and on point. You may optionally provide your email address to be notified of replies — your information is not used for any other purpose. By submitting a comment, you agree to these Terms of Use.