This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

compilation error  RSS feed

 
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
Sheriff
Posts: 36463
464
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
Boost this thread!