runtime.exec() at Java ME 8 not supported. Is there an alternative? -
i have call shell script java me 8 application cldc 8 doesn't implement runtime.exec()
. there other opportunities call shell script java me?
if understand correctly, might want consider using processbuilder
:
this class used create operating system processes.
eachprocessbuilder
instance manages collection of process attributes.start()
method creates newprocess
instance attributes.start()
method can invoked repeatedly same instance create new subprocesses identical or related attributes.
usage example docs:
process p = new processbuilder("mycommand", "myarg").start();
Comments
Post a Comment