aspose file tools
The moose likes Beginning Java and the fly likes Regarding packages Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Regarding packages" Watch "Regarding packages" New topic
Author

Regarding packages

ashish jadhav
Ranch Hand

Joined: Nov 20, 2008
Posts: 62
hello sir im doing work on one java application.in that application i created one datevalidator.java file in one package and authenticate.java in second package.when i run authenticate.java 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
Bartender

Joined: Aug 16, 2005
Posts: 12907
    
    3

When you compile authenticate.java, 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 7 API documentation
Scala Notes - My blog about Scala
ashish jadhav
Ranch Hand

Joined: Nov 20, 2008
Posts: 62
Thanks jesper.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Regarding packages
 
Similar Threads
Urgent........please respond..question about EAR files
Package structure
URLyBird 1.3.2 : Configuration Doubt
how to get the username from session?
security licence in java