[ale] Java question

Jim Sculley niceguyj at comcast.net
Sun Jan 25 20:58:39 EST 2009


Greg Freemyer wrote:
> 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
>   

Perhaps this will help:

http://java.sun.com/docs/books/tutorial/deployment/applet/lifeCycle.html

Jim S.


More information about the Ale mailing list