jvm - Nashorn JJS: incuding all jars in folder at cpasspath -


i using nashorn's jjs -classpath load jars in folder.

i have tried following :

jjs -j-xmx512m -j-xx:maxdirectmemorysize=512m -cp "c:/orientdb/lib/*" test.js

"illegal char <> @ index 16: c:/orientdb/lib/" not recognized option. use "-h" or "-help" see list of supported options.

jjs -j-xmx512m -j-xx:maxdirectmemorysize=512m -cp c:/orientdb/lib/* test.js

c:\orientdb\lib\ant-1.8.3.jar:2:7 missing space after numeric literal ?3z@ meta-inf/?? pk

any ideas?

i verified "*" in -cp option works jjs - used mac test it. jjs version 1.8.0_112.

jjs -cp tmp/* 

worked me. in "tmp" directory, had single jar , jjs prompt can refer classes in jar.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -