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
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-
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
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
--
: [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.
> >
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]
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
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
/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
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
10 matches
Mail list logo