• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

confusion in assessing interface

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
dear friends,
i have a directory called partha.
c:\jdk1.2.2\bin\partha.
in that i create a sub directory partha1
c:\jdk1.2.2\bin\partha\partha1.
now in that i create another directory pack and create a package named pack and use a public interface fax.
c:\jdk1.2.2\bin\partha\partha1\pack.
the doubt is that the interface fax can be accessed by the java file in partha1 but not in directory partha.
why is it . how can i access interface fax in these path for all higher levels of directory without defining every time the package each time in every directory
need help and also sooner
 
Ranch Hand
Posts: 289
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hie Partha,
I do not think we have a way to access classes in java from different packages without doing either of these two things
[ul]
[li]importing the classes in the file we want to use them
[li]explicitly refering to their fully qualified names
[/ul]
I can not think of any other way.As such I would suggest that you import this interface in the other directories/packages or the burdensome altenative of refering to their fully qualified names.

I hope this helps,
Herbert.
 
reply
    Bookmark Topic Watch Topic
  • New Topic