I'm trying to execute applications from java servlet
. When I run it on eclipse integrated tomcat its working fine. When I'm trying to do the same on os integrated tomcat server by deploying .war file into webapps, its not working. It doesn't encountering any error as well. Even I checked the logs, there is no error nothing but usual tomcat access log. Is there any other ways that I can execute applications like firefox, chrome, gedit
etc.
Note: Basic bash commands like ls, chmod, mkdir
were working. But while calling gedit, firefox
like apps its not working.
Statements Used:
* Runtime.getRuntime().exec(command)
even firefox
is called with /bin/bash -c
as well. No result.
* ProcessBuilder
Any alternatives ??