Class yy not found in type declaration

  • Share
  • Share

Applies to:
NA

Description:
This is a syntax error and occurs when you miss either of the following:
a. Forget to import a package
b. Commits case-sensitive errors with classes and mistype them

Cause:
a. Required “import” statements of your native code are not properly placed at the beginning of the program
b. Data types like “String” is written as string rather than String

JAVA-Compiler , ,

  1. admin
    March 9th, 2009 at 18:22 | #1

    Import all packages used in your program by writing the import statements at the beginning of your code. “java.lang” does not need to be imported manually as it is imported automatically in your program.

  2. admin
    March 9th, 2009 at 18:22 | #2

    Check classes such as data types in your program and make sure that they are properly written.

  1. No trackbacks yet.