Microsoft KB Archive/169815
Article ID: 169815
Article Last Modified on 8/25/2005
- Microsoft Java Virtual Machine
This article was previously published under Q169815
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:
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.
This problem occurs only under the Microsoft VM build 1516, when loading the applet via a file URL.
Steps to Reproduce the Behavior
- Install the Microsoft VM for Java build 1516.
- Create a default Applet Wizard applet, with animation support.
- Launch Internet Explorer outside Developer Studio by clicking the project's HTML page.
The applet will fail to load correctly, and you will receive the exception earlier in this article.
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:
Keywords: kberrmsg kbprb KB169815