Showing results for 
Search instead for 
Did you mean: 

Problem with Runtime.getRuntime.exec() method

Former Member
0 Kudos


I wrote the code like as

String[] strarr={"c:/programfiles/......../IEXPLORER.EXE","};


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

I am using NetWeaverDeveloperStudio

Please help me to do this.



Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos


I happened to stumble over some of your previous threads on this topic. in particular seems to hit the mark.

- Thorsten

0 Kudos


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.

0 Kudos

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.