PRB: Error J0049: Undefined Name 'Package'Last reviewed: February 10, 1998Article ID: Q172794 |
The information in this article applies to:
SYMPTOMSCreating a class whose name is the same as the \package in which it resides generates the following error when compiling a Java program that imports this package:
error J0049: Undefined name 'package'Where "package" is the name of your package.
RESOLUTIONTo workaround the problem, import the class name explicitly into your Java program or rename the class to ensure that it has a different name than the package. This problem has also been corrected see the STATUS section below for the current fix.
STATUSThis problem has been fixed with the Microsoft compiler for Java (Jvc.exe) version 1.02.4224 that is included with the Microsoft SDK 2.0 for Java Beta2. The SDK for Java is available at http://www.microsoft.com/java/.
MORE INFORMATION
Steps to Reproduce Behavior
REFERENCESFor 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: package jvc undefined
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |