Win a copy of Learn Spring Security (video course) this week in the Spring 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
Pie
Posts: 42967
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic