aspose file tools
The moose likes Applets and the fly likes Problem, java security KeyStore and JApplet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Problem, java security KeyStore and JApplet" Watch "Problem, java security KeyStore and JApplet" New topic

Problem, java security KeyStore and JApplet

Guillermo Diaz Solis

Joined: Dec 31, 2013
Posts: 11

(Sorry for the re-post I didn't see this subforum)
Hello Guys, I'm trying to kill a JApplet.

I'm using PCKS11 to read a Card and authenticate an user to log in on a webpage. I sign the japplet with a certificate to sign of code (Global sign I guess) I need it to deploy the applet.

Once that applet is running on the browser and the user not use it, if the user close the browser or close the applet (Its a modal dialog on html and js) the process java.exe disappears because I overwrote the method destroy and stop from Applet class.


The real problem is when the user has used the applet, in another words when the KeyStore from was loaded. I implement this.

Once the user loaded their certificates from the keystore and later close the modal (the modal dialog contains the japplet and the <object> tag who contains the applet , that is removed and added on different pages) or when the browser is closed, the process in the taskmanager still there and the System.exit(0) doesn't work.

Loading applet

Applet running

I'm guessing that its a problem of liberation of memory from the KeyStore. I need kill the applet correctly to use it once again and not make a lot of process "java.exe".
Somebody? Thanks.

Oracle Certified Associate, Java SE 7 Programmer
Have you tried LearnNowOnline?
subject: Problem, java security KeyStore and JApplet