[ale] Java question

Greg Freemyer greg.freemyer at gmail.com
Fri Jan 23 12:36:57 EST 2009


All,

How can a java applet terminate cleanly with Java 1.6.10 or newer?

== Details
I'm not much of Java programmer, but we have a applet we support.

We launch it in its own browser window (Firefox / IE / whatever) from
a web-portal page.

In the applet we currently have a pull-down menu that allows the user
to exit the application by calling system.exit()

It has a nasty side effect of closing all browser windows, but we've
been living with that for while.

As of Java 1.6.10 or above no longer allow calls to system.exit()

So we need to redo our code, but we can't figure out a clean way to do it.

We have attempted having the our applet terminate by simply
redirecting back to the portal page.  The redirect works, but if we
try to relaunch the applet it fails due to initialization issues.  We
assume the JRE is not properly being reset by a simple redirect.

Any suggestions welcome.

FYI: We definitely have to support XP based clients, but I assume this
is fairly OS agnostic.

Greg
-- 
Greg Freemyer
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
First 99 Days Litigation White Paper -
http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com


More information about the Ale mailing list