Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Whats wrong here? 'PACKAGE'

 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have put two classes in a package folder app.

The RegisterAction class is using the RegisterForm class. While compiling, the RegisterAction class is not able to identify the RegisterForm Class. why?


RegisterForm.java


RegisterAction.java
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the 'classes' directory in your classpath? If not, the class will not be found. Alternatively, do a "cd WEB-INF/classes" and start the compilation from there; then the class will be in the default classpath.
 
vidhyasagar reddy
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use javac *.java


if u want to compile individually means set classpath for that package
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic