PRB: Some Visual J++ Samples Report Errors when Compiling (162119)
The information in this article applies to:
- Microsoft Visual J++ 1.0
- Microsoft Visual J++ 1.1
This article was previously published under Q162119 SYMPTOMS
Compiling some of the samples on the Visual J++ CD may result in the
following error messages.
JavaCallingCOM
C:\Msdev\samples\microsoft\javacallingcom\usecom.java(10,8) :
error J0051: Undefined package 'comserver'
OLEControls
C:\Msdev\samples\microsoft\olecontrols\orgchart.java(8,8) :
error J0051: Undefined package 'msoutl32'
HTMLControls
C:\Msdev\samples\microsoft\htmlcontrols\updatecontrols.java(7,8) :
error J0051: Undefined package 'intrinsc'
DAOSample
C:\Msdev\samples\microsoft\daosample\dao_dbengine.java(3,8) :
error J0049: Undefined name 'dao3032._DBEngine'
C:\Msdev\samples\microsoft\daosample\simpledao.java(12,8) :
error J0051: Undefined package 'dao3032'
RDOSample
C:\Msdev\samples\microsoft\rdosample\simplerdo.java(9,8) :
error J0051: Undefined package 'msrdo32'
COMCallingJav
C:\Msdev\samples\microsoft\comcallingjava\euclid.java(8,8) :
error J0051: Undefined package 'euclid'
CabAndSign
C:\Msdev\samples\microsoft\cabandsign\javabeep.java(31,2) :
error J0049: Undefined name 'IBeeper'
CAUSE
The samples listed above all require Java descriptions of the COM
components they use. The build errors are generated if the Visual J++ Java
Typelib Conversion Utility is not run on the type library required by the
samples.
RESOLUTION
You can create the Java description of COM components by running the Java
Type Library Wizard from within the IDE under menu Tools.Java Type Library
Wizard, or by running JavaTlb.exe from an MS-DOS command line.
Help and the Readme.html for the samples listed above describe the steps
required to successfully compile and run the samples. Following the steps
described in Help and each individual Readme.html file for the specific
sample should resolve the errors. You can find the Readme.html file in the
directory where each individual sample is located.
The Readme.html also has information that should help in troubleshooting
problems with the specific sample.
STATUS
This behavior is by design.
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:
Modification Type: | Minor | Last Reviewed: | 8/25/2005 |
---|
Keywords: | kbArtTypeINF kbprb KB162119 |
---|
|