File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
How do i compile B.java?
Modifier protected does not hide inherited members to (static) code of superclass package
an unbelievable question about import!!!
cannot find symbol
javac and classpath doubt