Microsoft KB Archive/325739

= PRB: Referencing a Visual J# DLL Requires a Reference to Vjslib.dll =

Article ID: 325739

Article Last Modified on 8/7/2003

-

APPLIES TO


 * Microsoft Visual J# .NET 2003 Standard Edition
 * Microsoft Visual J# .NET 2003 Standard Edition

-



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.



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.

Additional query words: dll class library vjsharp reference

Keywords: kbprb KB325739

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.