File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes open Browser iexplore Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "open Browser iexplore" Watch "open Browser iexplore" New topic

open Browser iexplore


Joined: May 23, 2005
Posts: 5
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

Joined: Feb 28, 2005
Posts: 8
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 ]

Joined: May 23, 2005
Posts: 5
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

Joined: Nov 29, 2000
Posts: 97
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

Joined: May 23, 2005
Posts: 5
I get an Exception

Could not invoke browser, command=iexplore.exe
Are there other posibilities ??
Thanks for your support
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11955

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.

[ May 23, 2005: Message edited by: fred rosenberger ]

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Dan Maples
Ranch Hand

Joined: Jun 21, 2004
Posts: 153
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.


I agree. Here's the link:
subject: open Browser iexplore
It's not a secret anymore!