extends "cannot be resolved to a type"
- From: Ben Collver <collver@xxxxxxxx>
- Date: Wed, 28 Mar 2007 08:12:48 -0700
My source code is in the following locations.
http://terrorpin.net/~ben/docs/comp/lang/java/HelloDate.java
http://terrorpin.net/~ben/docs/comp/lang/java/HelloDate2.java
I am using IBM PowerPC Linux JDK 1.5 on Fedora Core 6. HelloDate.java compiles fine and produces a working class. When I try to compile HelloDate2.java, I get an error. What does this error message actually mean?
[ben@tidbit bens]$ javac HelloDate2.java
----------
1. ERROR in HelloDate2.java (at line 1)
class HelloDate2 extends HelloDate
^^^^^^^^^
HelloDate cannot be resolved to a type
----------
2. ERROR in HelloDate2.java (at line 5)
printDate();
^^^^^^^^^
The method printDate() is undefined for the type HelloDate2
----------
2 problems (2 errors)
.
- Follow-Ups:
- Re: extends "cannot be resolved to a type"
- From: Oliver Wong
- Re: extends "cannot be resolved to a type"
- Prev by Date: Re: Swing Text components
- Next by Date: Re: extends "cannot be resolved to a type"
- Previous by thread: Swing Text components
- Next by thread: Re: extends "cannot be resolved to a type"
- Index(es):