aspose file tools*
The moose likes Struts and the fly likes compilation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "compilation error" Watch "compilation error" New topic
Author

compilation error

sonali rao
Ranch Hand

Joined: Nov 03, 2003
Posts: 64
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
sonali rao
Ranch Hand

Joined: Nov 03, 2003
Posts: 64
I tried placing struts.jar in the classpath but i still get the same error.
Himanshu Shah
Greenhorn

Joined: Apr 02, 2004
Posts: 3
Hi sonali,
If possible then plse send ur ActionClass code. So i can look out from the code.
Regards,
Himanshu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: compilation error