[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Referencing another class in the same directory



You can add a period (.) to your classpath and that tells the compiler to
look in the current directory. You may have already known that, but just in
case.....
 
 

	-----Original Message----- 
	From: Mike Millson [mailto:mgm@atsga.com] 
	Sent: Mon 1/28/2002 2:19 PM 
	To: Ajug-Members 
	Cc: 
	Subject: RE: Referencing another class in the same directory
	
	

	Nevermind, I see it's another CLASSPATH issue...
	
	-----Original Message-----
	From: Mike Millson [mailto:mgm@atsga.com]
	Sent: Monday, January 28, 2002 1:55 PM
	To: Ajug-Members
	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?