cwitr329
asked on
Closing all instances of a Browser via executable jar...
Hello, we have an executable jar that is downloaded and ran by the user of our site. This Jar grants our domain neccessary access to run our applet. The problem we are having is that when the Jar is installed, the JVM has to be reloaded as well as the browser for the changes to take effect. Is there a way to kill all instances of browsers, then reopen them to a specific webpage (IE our login page). Thanks
ASKER
When our domain is granted the needed permissions on the local machine, they can then use our applet on the site. Problem is, this affect doesnt take place until the JVM is restarted. So technically the only thing needed is the JVM restarted. So if the user tries to run it immediately, it wont run. We would like to elliminate this problem. Thanks
how is your domain being granted permissions?
ASKER
Via security setting in Java, once granted it stays on the users computer. We just need to Kill A) The JVM, then restart it or B) Kill the Browser and restart it. Please let me know if anyone knows how to do this. Thanks
I see. Why aren't you just signing your applet jar?
afaik theres no standard way to shutdown the browser, you'd need to write some native code
afaik theres no standard way to shutdown the browser, you'd need to write some native code
ASKER
Well, if I sign my jar, it still asks the user to Accept it (Browser security permissions). This applet is running in a hidden I-frame, so we need it to run without any dialogs. The only way we have determined how to do this is to grant permissions for our domain. I guess I could write something in C++ that is ran when the EXE Jar is ran to close browsers??
they'd only get prompted the first time they logged in.
otherwise, you'll need to use native code.
otherwise, you'll need to use native code.
ASKER
OK, thanks. I will look into it. I will keep this open for a little longer just incase someone else has some insight. Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
why do u need the browser restarted?