• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

confusing compile error

 
Ranch Hand
Posts: 284
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks it really helped, i had kept my src folder inside WEB-INF and was wrongly compiling.
Thanks again
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic