Hari Krishna,
You can use the class Process in Java to start an external application and wait 
for it to exit
See this example: 
http://www.java2s.com/Code/JavaAPI/java.lang/ProcessexitValue.htm
Caution, waitFor() blocks the calling thread

Detecting accurately when the browser is closed is tough, what if the user goes 
on to opening other tabs/windows but has closed the page you opened?
If your Java app does nothing after opening the browser, it is good to close it 
immediately after opening the browser
See http://www.java2s.com/Code/JavaAPI/java.awt/DesktopbrowseURIuri.htm on how 
to open an external URL from Java


Satish

On Apr 14, 2010, at 6:42 AM, hari krishna wrote:

> Hi,
>  
> I like to is there any way to access Non Java Applications with Java.
>  
> I struck with one problem.  I am running one Java Application with thread 
> enabled.  This Java Application will opens one Browser (IE) also.  If user 
> close the browser Internally Java Thread should close.
>  
> Please assisst me as soon as possible.
>  
> Hari.
>  
>  
> 
> Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
> Now! http://messenger.yahoo.com/download.php

Reply via email to