This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compilation error

 
sonali rao
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
When I try to compile the Action class I get the following error.
package org.apache.struts.action does not exist
I have struts.jar in the lib dir. I do not have struts.jar set in the classpath.
Please let me know how can i rectify this error.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have struts.jar in the lib dir. I do not have struts.jar set in the classpath.

You answered your own question. Put struts.jar in the classpath. Many IDEs will automatically do this for you, but otherwise it is necessary to do by hand.
 
sonali rao
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried placing struts.jar in the classpath but i still get the same error.
 
Himanshu Shah
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi sonali,
If possible then plse send ur ActionClass code. So i can look out from the code.
Regards,
Himanshu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic