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.
each processbuilder instance manages collection of process attributes. start() method creates new process 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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -