Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/169810

From BetaArchive Wiki
Knowledge Base


Article ID: 169810

Article Last Modified on 4/21/2006



APPLIES TO

  • Microsoft Visual J++ 1.1 Standard Edition, when used with:
    • the hardware: Intel x86
  • Microsoft Java Virtual Machine



This article was previously published under Q169810

SYMPTOMS

Attempting to execute a Java Applet that was generated by the Database Wizard for Java from outside Developer Studio, generates the following run- time error:

error: java.lang.NoClassDefFoundError:com/ms/com/LicenseMgr

CAUSE

When an applet is run in Internet Explorer and outside of Developer Studio, the applet is not trusted and does not have access to ILicenseMgr. ILicenseMgr is available only to trusted applets.

RESOLUTION

Create a CAB that contains the classes of the applet and digitally sign the CAB with the CodeSign kit.

STATUS

This is by design since only trusted applets should have access to the ILicenseMgr. The ILicenseMgr allows the creation of COM objects on the client. If an untrusted applet was allowed to create COM objects via ILicenseMgr, any applet could use this method to alter the client machine in any number of ways.

MORE INFORMATION

For more information on Cab and Sign technology, look in the Cab&Sign folder on the Visual J++ CD-ROM. The Visual J++ CD-ROM also includes a sample called CabAndSign that gives step-by-step instructions on how to create Cab files and Test Certificates.

REFERENCES

For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:


Additional query words: COM DAO RDO trusted LicenseMgr

Keywords: kberrmsg kbprb kbwizard KB169810