This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Another confused question about package" Watch "Another confused question about package" New topic
Author

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!
B.java:3: 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?
johnny
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Another confused question about package