Hi Jitendra and Seth, Thank you for your valuable suggestions. I am trying it out. Now I can access the Java code through LCDS and is working fine. But we don't know why exe is not executing. But it is fine we are debugging it out...
Thank you once again.. Chitra On Fri, Jun 13, 2008 at 11:01 PM, Seth Hodgson <[EMAIL PROTECTED]> wrote: > This has nothing to do with LCDS. Perhaps your app server defines a > security restriction on the Runtime class or exec() method. I've never tried > making a Runtime.exe() call from a Servlet. I'd suggest debugging this by > dropping your call into a simple Servlet or JSP, and be sure to make your > call within a try/catch and dump out any Exception info. Once that's working > (assuming it can), it'll work fine from within a remote object hosted by > LCDS. > > In terms of the general approach, you're doing the right thing. There's no > way to kick off an executable from within the browser player directly. > > Good luck, > > Seth > > From: [email protected] <flexcoders%40yahoogroups.com> [mailto: > [email protected] <flexcoders%40yahoogroups.com>] On Behalf Of > Chitra S.Pai > Sent: Thursday, June 12, 2008 8:16 PM > To: [email protected] <flexcoders%40yahoogroups.com> > Subject: Re: [flexcoders] LCDS gets Killed !!! > > Hi Seth, > > Actually the server get destroyed when I call the Java function which > contain a new process. I don't know why? Is this because LCDS doesn't allow > child process in it ? > > I am really confused what is actually happening. As the server command > prompt get closed also I cannot trace what is going on.. > > Actually I am trying to run an external exe through Java code using LCDS > and Flex. Flex cannot directly instantiate the exe so I am going > through Java and all.. And to run Java code with Flex I am using LCDS as > interface. Do I have some other option to run Java code with Flex and > without LCDS > > Hope there is a solution for this... > > Chitra > On Fri, Jun 13, 2008 at 12:12 AM, Seth Hodgson <[EMAIL > PROTECTED]<shodgson%40adobe.com>> > wrote: > What do you mean by killed? Is your call to exec() throwing an Exception, > and if so is it showing up in your server logs? > > Seth > > From: [email protected] <flexcoders%40yahoogroups.com> [mailto: > [email protected] <flexcoders%40yahoogroups.com>] On Behalf Of > Chitra S.Pai > Sent: Thursday, June 12, 2008 6:36 AM > To: [email protected] <flexcoders%40yahoogroups.com> > Subject: [flexcoders] LCDS gets Killed !!! > > Hi, > > I am trying to run a Java code from LCDS and I am facing the following > problem.. > > LCDS process gets killed... > > In the Java function I am trying to invoke an exe using runtime.exec(); > > The Java code is working fine when tested separately. > > Please... Help me.. > > Chitra > > >

