import problem/question
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mark_webb
Posted On:   Thursday, May 31, 2001 11:11 AM

Can someone explain to me why I get a
compile error when I import the package
a.b.c.*; ?? I do not get an error when
I import the class a.b.c.d; I am
positive that class 'd' is in package
a.b.c. Is this a classpath issue? Or
what am I doing wrong?


thank you

Re: import problem/question

Posted By:   Ninad_Jambhekar  
Posted On:   Friday, June 1, 2001 02:01 PM

There might be some classes in a.b.c package that has same name as that of one of the classes in other imported packages.

That's why it works fine when you explisitely qualify the import as a.b.c.d it works.

Re: import problem/question

Posted By:   Michael_Wax  
Posted On:   Thursday, May 31, 2001 01:25 PM

What is the error that you get, and what are the package names?
About | Sitemap | Contact