PRB: Referencing a Visual J# DLL Requires a Reference to Vjslib.dll (325739)



The information in this article applies to:

  • Microsoft Visual J# .NET (2002)
  • Microsoft Visual J# .NET (2003)

This article was previously published under Q325739

SYMPTOMS

If you are using a language other than Visual J# when you compile a .NET application that references a DLL that is created with Visual J#, you receive an error message that states that it does not understand the type or that a type is in an assembly that is unreferenced.

CAUSE

You must also reference the Visual J# class library, Vjslib.dll.

RESOLUTION

Add Vjslib.dll to the reference list of the application.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Create a Visual J# class library that has a declared field whose type is in a subpackage of the 'java' package (for example, the type java.lang.Double).
  2. Create a Microsoft Visual C# .NET or Microsoft Visual Basic .NET console application, and then add a reference to the Visual J# class library DLL that you just created.
  3. In the console application, add code to create an instance of the Visual J# class and access the field of type java.lang.Double.
  4. Compile the console application.

Modification Type:MajorLast Reviewed:8/7/2003
Keywords:kbprb KB325739