• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

open Browser iexplore

 
holger_sanchez
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi @ all
I want to open iexplorer from Jacva Runtime. I have tried to do Runtime.getRuntime().exec("iexplore.exe -k") but that does not work
Exception: Could not invoke browser, command=iexplore.exe -k
what can i do because i need to show an web site in fullscreen but i have to start the browser from a java programm
Please help me
 
Dan Maples1
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, I had a similar problem a while ago, check this thread out, be sure to check out what Dirk posted, his solution was very helpfull.
[ May 23, 2005: Message edited by: Dan Maples1 ]
 
holger_sanchez
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your answer
but i could not Download chapter 2
could you post the sourcecode please
I'm very thankful
 
Deepak Shah
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following works for me:



This piece of code is what I have saved for a while ( I needed it for something). You can get the process id in return. Please check documentation what p.waitfor() does ( I don't recall it now)

Hope this helps

www.indianuncle.com
 
holger_sanchez
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get an Exception

Could not invoke browser, command=iexplore.exe
Are there other posibilities ??
Thanks for your support
 
fred rosenberger
lowercase baba
Bartender
Posts: 12143
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear question1,

You will probably be asked soon by a moderator to change your display name to ahere to the naming policy of the ranch. You can change your name here.

Now, if you post your code and the exact text of the error message, we'll try to help you more. Please be sure to surround your code with the code tags - you can get them from that nifty button just below the 'add post' button.

thanks!
[ May 23, 2005: Message edited by: fred rosenberger ]
 
Dan Maples
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is what I used. This opens the default browser of the system instead of a specific instance of internet explorer. If you ever plan to run your code on another machine, I would highly recomend using this.

-Dan


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic