This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Whats wrong here? 'PACKAGE'

 
Arul Jose
Ranch Hand
Posts: 131
  • 0
  • 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: 42966
73
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic