You cannot exit the JVM when running an applet - hence the
accesscontrolexception - you can do that only in stand-alone mode!
Look at the Java & Java3D demos!
Clean up an applet by placing appropriate code in its destroy() method,
in you case for instance:

public void destroy() {
   universe.removeAllLocales();
or better yet, use the undocumented method cleanup() if your universe is an
instance of SimpleUniverse!
}

H.

----- Original Message -----
From: "Brobbey,Isaac (neuron)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 1:39 PM
Subject: [JAVA3D] System.exit(0)


> I am trying avoid an error of "modifying life compiled object" when my
> browser is running(an applet) and loads another applet.
> so i want to terminate the current session of the  java3D  before loading
> another one.when i put an explicit call of System.exit(0) in the applet
> program, i get an "accessControlException". do i need a special permission
> from the runtime system to terminate the current session ?
>
> thanks,
>
>
> Isaac
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to