Solved

Closing all instances of a Browser via executable jar...

Posted on 2006-07-05
9
266 Views
Last Modified: 2010-03-31
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
0
Comment
Question by:cwitr329
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
9 Comments
 
LVL 92

Expert Comment

by:objects
ID: 17047625
nnot that I'm aware of.
why do u need the browser restarted?
0
 

Author Comment

by:cwitr329
ID: 17047647
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
0
 
LVL 92

Expert Comment

by:objects
ID: 17047669
how is your domain being granted permissions?
0
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 

Author Comment

by:cwitr329
ID: 17047686
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
0
 
LVL 92

Expert Comment

by:objects
ID: 17047701
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
0
 

Author Comment

by:cwitr329
ID: 17047713
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??
0
 
LVL 92

Expert Comment

by:objects
ID: 17047737
they'd only get prompted the first time they logged in.

otherwise, you'll need to use native code.
0
 

Author Comment

by:cwitr329
ID: 17047773
OK, thanks. I will look into it. I will keep this open for a little longer just incase someone else has some insight. Thanks
0
 
LVL 26

Accepted Solution

by:
ksivananth earned 250 total points
ID: 17048696
I am not sure if I understand your problem clearly but if you call System.exit( 0 ) from an applet which is loaded in a browser, it is going to close all the browser instances spawned from that browser. System.exit( 0 ) will kill the JVM from which the applet launched.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question