• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using the same Process everytime

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using java.lang.process for opening IE with some URL, My programme will try to go to various URL by opening IE everytime.. and closing it when done.
That is i open
Process p = Runtime.getRuntime().exec("iexplore.exe <URL>");
the above code will open the given URL after that I close the Process by using p.destroy();
If I want to do this for around 10 URLs I need to open IE 10 times and close it. Is there any way to Use the same IE and just only pass the URL.

Thanks in advance,

Sivaraman.L
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Google for "runtime exec RUNDLL32". When you pass a URL this way it opens the default browser (might not be IE) and can reuse an existing browser window. It's not possible to force control over exactly what happens, but it might be just right for you. Another choice is a Java-Com bridge. We tried Dan Adler's Jacob - DanAdler.com. Google for "java com bridge" and see lots of incomplete open source projects and expensive commercial products. I can't really recommend any over another.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic