PRB: Security Exception When Launching an Applet with Images (169815)
The information in this article applies to:
- Microsoft virtual machine
This article was previously published under Q169815 SYMPTOMS When you try to launch a Java applet with animation support
from outside the DevStudio environment, the applet fails to launch correctly,
and the Java log shows the following AppletSecurityException error:
*** Security Exception: Couldn't connect to with origin
from file ****com.ms.applet.AppletSecurity.checkConnect at
com/ms/applet/BrowserAppletFrame.getImageFromHash at
com/ms/applet/BrowserAppletContext.getImage at java/applet/Applet.getImage...
RESOLUTION To work around the problem, you can use one of the
following methods: - You can load the applet from a Web server, because it will
not be a file Uniform Resource Locator (URL) and is permitted to connect to the
host from which it was loaded.
Note The image files must also exist on the server in the same or
subordinate folder of the applet. - You can run the applet from DevStudio, which relaxes the
security restrictions imposed on an applet. Essentially, putting the class
files of the applet in the system classpath.
- You can put the applet in a signed CAB file, again to relax
the security restrictions imposed on an applet.
REFERENCES For more information about Cab&Sign, please refer to
the Sample CabAndSign that comes with the Visual J++. For additional information about obtaining the
latest version of the Microsoft VM, click the article number below to view the
article in the Microsoft Knowledge Base: 163637 INFO: Availability of Current Build of Microsoft VM
For the latest Knowledge Base articles and other
support information about Visual J++ and the SDK for Java, see the following
page on the Microsoft Product Support Services Web site:
Modification Type: | Minor | Last Reviewed: | 8/25/2005 |
---|
Keywords: | kberrmsg kbprb KB169815 |
---|
|