Two Laptop Bag*
The moose likes Beginning Java and the fly likes so simple...yet so difficult Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "so simple...yet so difficult" Watch "so simple...yet so difficult" New topic
Author

so simple...yet so difficult

Danish Shaukat
Ranch Hand

Joined: Nov 16, 1999
Posts: 340
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

Joined: May 08, 2001
Posts: 1932
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: so simple...yet so difficult