This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Regarding packages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Regarding packages" Watch "Regarding packages" New topic

Regarding packages

ashish jadhav
Ranch Hand

Joined: Nov 20, 2008
Posts: 62
hello sir im doing work on one java that application i created one file in one package and in second package.when i run it unable to find datevalidator.class file for comparing dates.can you please tell me ho authenticate class automatically get datevalidator.obj file which is in other package.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14913

When you compile, you have to make sure that the package that contains class datevalidator is in the classpath.

See The Java Tutorial: Packages for more information about using packages.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
ashish jadhav
Ranch Hand

Joined: Nov 20, 2008
Posts: 62
Thanks jesper.
Don't get me started about those stupid light bulbs.
subject: Regarding packages
It's not a secret anymore!