• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding packages

 
ashish jadhav
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Saloon Keeper
Posts: 15205
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
ashish jadhav
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks jesper.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic