• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

open Browser iexplore

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I get an Exception

Could not invoke browser, command=iexplore.exe
Are there other posibilities ??
Thanks for your support
 
lowercase baba
Posts: 13091
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Your buns are mine! But you can have this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic