This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes Whats wrong here? 'PACKAGE' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Whats wrong here? Watch "Whats wrong here? New topic
Author

Whats wrong here? 'PACKAGE'

Arul Jose
Ranch Hand

Joined: Jan 14, 2005
Posts: 131
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
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
vidhyasagar reddy
Ranch Hand

Joined: Jul 05, 2005
Posts: 40
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
 
subject: Whats wrong here? 'PACKAGE'
 
Similar Threads
Need help to understand the ActionServlet
Newbie Problems
Error in compilation.
Is UserDirectory a default class
taglib in JSP not working in struts