The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Another confused question about package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Another confused question about package" Watch "Another confused question about package" New topic

Another confused question about package

Mike Lin
Ranch Hand

Joined: Oct 29, 2002
Posts: 48
set classpath to c:\m,
first ,at path c:\m compile class A

compile success.
then another class B"

compile failed! cannot resolve symbol
symbol : class A
location: class pa.B
public class B extends A {}
1 error

SCJP1.4 <br />Best wishes!<br />中国人!
John Ip
Ranch Hand

Joined: Mar 04, 2004
Posts: 45
Did you put your class B file inside a subdirectory which is the same as your package name?
I agree. Here's the link:
subject: Another confused question about package
It's not a secret anymore!