This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Compile Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Compile Problem" Watch "Compile Problem" New topic

Compile Problem

Buck Turgidson

Joined: Oct 08, 2001
Posts: 8
I am pulling my hair out with this one. I thought I understood this, but I guess I don't.
I have 2 classes, both in c:\java\buck\servlets\mortgage.
I have the statement "package " in both.
I have ".", and the servlet jar on my classpath. When I go to compile them from c:\java, the first compiles fine, but the second, which extends the first, returns the following error:
buck\servlets\mortgage\ cannot resolve symbol
symbol : class EventHandlerBase
location: class
public class EnterMortgageHandler extends EventHandlerBase {
Any ideas on what to try? I know this is simple, I am just wasting the whole day on it.
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9044
Try this:

C:\Java>set classpath=%classpath%;C:\Java\buck\servlets\mortgage
C:\Java>javac C:\Java\
C:\Java>javac C:\Java\

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Don't get me started about those stupid light bulbs.
subject: Compile Problem
Similar Threads
Problem With JDK1.3 -- I Posted Before, But Could Not Get A Solution
problem on extending a class declared on the same package!!
inheritance problem?
Java doesn't know where to find servlet packages