Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

so simple...yet so difficult

 
Danish Shaukat
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all !
I've set the classpath.
set classpath=d:\packages
Now compiler reads class files in this folder
But if i make folders com.dannish and place them in d:\packages
then class files in com.dannish are not read.
I do import the package
import com.dannish.*;
Now files in dannish are not read.....
error is
cannot access com.dannish.filename
Regards
Danish.
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The files in com.dannish need to be part of the com.dannish package, and will need to be imported into any class that is not part of that package.
Jason
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic