[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Referencing another class in the same directory
Actually, javac will do a recursive compile. It will compile A if it is
used by B. It's sort of like having a build-in make with a dependency
checker.
Ed
---
From: Chris.Graham@alltel.com
To: ajug-members@www.ajug.org
Subject: Re: Referencing another class in the same directory
Date: Mon, 28 Jan 2002 14:23:28 -0500
Off the top of my head, I would think that class A might not have been
compiled. If it has been compiled, and the class file for class A is in
the correct directory, you might want to use the -classpath option to tell
the browser where to look.
--Chris
From: Mike Millson <mgm@atsga.com> on 01/28/2002 01:54 PM
Please respond to mgm@atsga.com
To: Ajug-Members <ajug-members@www.ajug.org>
cc:
Subject: Referencing another class in the same directory
Consider two classes both located in the same directory:
public class A{
}
public class B{
A a;
}
Why do I get a "cannot resolve symbol" error when I compile class B? Aren't
all classes within the same directory accessible to one another? Why isn't
class A known within class B?
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com