Using Runtime.getRuntime().exec() function

2000-07-05 Thread Ritesh_Srivastava
Hi, >From a servlet i am executing notepad application like this : Runtime.getRuntime().exec("notepad"); How can I invoke a command like this: Runtime.getRuntime().exec("dir");--> This command does not executes since this is console dependent.Can anybody help me how to do that? Re

Using Runtime.getRuntime().exec() function

2000-07-11 Thread Ritesh_Srivastava
Runtime.getRuntime().exec("notepad") works but Runtime.getRuntime().exec("java ApplicationName") does not works. What can be the possible reason.? Ritesh === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-

Re: Using Runtime.getRuntime().exec() function

2000-07-11 Thread Andrew Craig
r this should work... Andrew > -Original Message- > From: Ritesh_Srivastava [mailto:[EMAIL PROTECTED]] > Sent: 11 July 2000 13:06 > To: [EMAIL PROTECTED] > Subject: Using Runtime.getRuntime().exec() function > > > Runtime.getRuntime().exec("notepad") wor

Re: Using Runtime.getRuntime().exec() function

2000-07-11 Thread Sven van 't Veer
Ritesh_Srivastava wrote: > > Runtime.getRuntime().exec("notepad") works but > Runtime.getRuntime().exec("java ApplicationName") does not works. > Create a batch file that cd's to the startup dir os the java app, and then calls "java appname". Then in your app call the batchfile. sven --

Re: Using Runtime.getRuntime().exec() function

2000-07-11 Thread Ritesh_Srivastava
: [EMAIL PROTECTED] > Subject: Re: Using Runtime.getRuntime().exec() function > > Ritesh_Srivastava wrote: > > > > Runtime.getRuntime().exec("notepad") works but > > Runtime.getRuntime().exec("java ApplicationName") does not works. > >

Re: Using Runtime.getRuntime().exec() function

2000-07-11 Thread Ritesh_Srivastava
Tuesday, July 11, 2000 5:48 PM > To: [EMAIL PROTECTED] > Subject: Re: Using Runtime.getRuntime().exec() function > > You are trying to exec a program called "java ApplicationName" by doing > that. > > Instead try : > > String cmd[]=new String[2]

Re: Using Runtime.getRuntime().exec() function

2000-07-11 Thread Nick Wesselman
From: "Ritesh_Srivastava" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 11, 2000 9:29 AM Subject: Re: Using Runtime.getRuntime().exec() function > the code works fine for a stand alone java application , but if the same > code is written in a servlet, it does no

Re: Using Runtime.getRuntime().exec() function

2000-07-11 Thread joydeep
catch(java.io.IOException e) { >} > >As far as I remember this should work... > > >Andrew > > >> -Original Message- >> From: Ritesh_Srivastava [mailto:[EMAIL PROTECTED]] >> Sent: 11 July 2000 13:06 >> To: [EMAIL PROTECTED] >> Subject

JSP Editors (was RE: Using Runtime.getRuntime().exec() function)

2000-07-12 Thread Andrew Craig
/cheap to get hold of? Andrew > -Original Message- > From: joydeep [mailto:[EMAIL PROTECTED]] > Sent: 12 July 2000 05:39 > To: [EMAIL PROTECTED] > Subject: Re: Using Runtime.getRuntime().exec() function > > > Hi Andrew, > > could u suggest any JSP editor which

Re: JSP Editors (was RE: Using Runtime.getRuntime().exec() function)

2000-07-12 Thread joydeep
Thanks, Andrew, for the tip!! -Original Message- From: Andrew Craig <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Wednesday, July 12, 2000 2:30 PM Subject: JSP Editors (was RE: Using Runtime.getRuntime().exec() function) >The only one that I know o