Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding packages  RSS feed

 
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
Sheriff
Posts: 16006
87
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!