PRB: java.lang.NoClassDefFoundError:com/ms/com/LicenseMgr Error

Last reviewed: January 29, 1998
Article ID: Q169810
The information in this article applies to:
  • Microsoft Visual J++, version 1.1 on the following platform: x86
  • Microsoft Win32 Virtual Machine for Java

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. For the latest info on CAB technology, refer to http://www.microsoft.com/workshop/prog/cab.

REFERENCES

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following page on the Microsoft Technical Support site:

   http://support.microsoft.com/support/visualj/
   http://support.microsoft.com/support/java/


Additional query words: COM DAO RDO trusted LicenseMgr

Keywords : kberrmsg JCab JCOM JDB WizardIss
Technology : kbInetDev
Version : WINDOWS:1.1
Platform : WINDOWS
Hardware : x86
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 29, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.