Skip to Content
author's profile photo Former Member
Former Member

Problem with Runtime.getRuntime.exec() method

hi,

I wrote the code like as

String[] strarr={"c:/programfiles/......../IEXPLORER.EXE","http://192.168.1.201:50000/Root/url};

Runtime.getRuntime.exec(strarr);

it is working with java program But it is not working with SessionBean

I am using NetWeaverDeveloperStudio

Please help me to do this.

Thanqqqqqqq

Guru

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Mar 25, 2006 at 07:35 PM

    Guru,

    I happened to stumble over some of your previous threads on this topic. how-to-call-a-servlet-in-sessionbean-in-netweaver in particular seems to hit the mark.

    - Thorsten

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 24, 2006 at 11:47 PM

    Hi Guru,

    In a standalone Java program running on your own machine, this code will start up Internet Explorer on your own machine. However, if this is executed in a session bean, it will attempt to start Internet Explorer <i>on the server</i> and that's a truly horrible thought!

    If you tell me what you wish to accomplish with your code, I'm sure I can point you in the right direction.

    Regards,

    Thorsten

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 25, 2006 at 09:17 AM

    Hai,

    Actually we have written huge amount of code in servlets,which will connect to sap and fill the related data base tables.Now that url should typed in the browser and i have 10 such urls with me.And it was not recommended from my client.So i thought to initialize them from my session bean which is a web service and it will be called by the client.So tell me the best way of doing it.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.