Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

confusing compile error

 
Pranav Bhatt
Ranch Hand
Posts: 284
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi am having two java classes, one form and other action in same dir.The dir structure is -:
D:\apache-tomcat-5.5.20\webapps\Sandeep\WEBINF\src\roseindia\web\struts\action.

My LoginForm.java is as-:


It already got compiled and am having a LoginForm.class file in same dir.

Am having my action class in same dir as below-:

But when i'am trying to compile LoginAction.java am getting an error as-:

cannot find symbol
symbol: class LoginForm
location: class roseindia.web.struts.action.LoginAction


As am having the class file of LoginForm in same dir as LoginAction and am importing the package too, still am getting this error. Please help

[ January 28, 2008: Message edited by: pranav bhatt ]
[ January 28, 2008: Message edited by: pranav bhatt ]
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What directory are you compiling from? You should be compiling from your "src" directory and you might need to add "." to your classpath (the -cp param to javac).

- Brent
 
Pranav Bhatt
Ranch Hand
Posts: 284
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks it really helped, i had kept my src folder inside WEB-INF and was wrongly compiling.
Thanks again
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic