dcsimg
getRuntime.exec() is not running in iPlanet webserver 4.1
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Prak_Babu
Posted On:   Friday, November 16, 2001 07:11 AM

we are using iPlanet webserver 4.1 fatTrack edition. i am calling code like this


Process p;


Runtime r = Runtime.getRuntime();


p=r.exec(commandarry); commandarry is calling C functions



Does iPlanet supports native methods



could anyone give some information for this

Re: getRuntime.exec() is not running in iPlanet webserver 4.1

Posted By:   Sergey_Opanasets  
Posted On:   Friday, November 16, 2001 08:39 AM

I do not think that it has something to do with native methods, since you are calling application(exe, cmd or bat, or some script on unix). The only problem that could be is lack of permissions to execute application. Check permissions.
I remember that this code was executed a year ago on Fast Track 4.0 or 4.1 without problems. agentName is the name of application you want to start. If the problems are permissions, you should get SecurityException, otherwise, check command line, or try to use absolute path like ("c:command.com") instead relative.



Runtime runtime = Runtime.getRuntime();


try {


Process proc = runtime.exec(agentName);


} catch (IOException ie){


}



Hope it will help.

About | Sitemap | Contact