Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compile Problem

 
Buck Turgidson
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 buck.servlets.mortgage " 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\EnterMortgageHandler.java:6: cannot resolve symbol
symbol : class EventHandlerBase
location: class buck.servlets.mortgage.EnterMortgageHandler
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
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:

C:\Java>set classpath=%classpath%;C:\Java\buck\servlets\mortgage
C:\Java>javac C:\Java\buck.servlets.mortgage.FirstClass.java
C:\Java>javac C:\Java\buck.servlets.mortgage.SecondClass.java
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic