Win a copy of Head First Android this week in the Android forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

struts

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
New to struts,
I am doing the hello world from struts kick start, I have mounted my struts lib directory with the following jars in it.
commons-beanutils-1.6.1.jar
commons-collections.jar
commons-dbcp.jar
commons-digester.jar
commons-logging.jar
commons-pool.jar
commons-services.jar
commons-validator.jar
jakarta-struts-1.1.jar
struts-1.1b2.jar
I keep getting this error when trying to compile HelloAction.java

HelloAction.java [9:1] package org.apache.struts.action does not exist
import org.apache.struts.action.Action;

Not sure what I am doing wrong. It should compile? I think?
 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Your compiler cannot see where the package org.apache.struts.action is. When you say mount what exactly do you mean by that? Are all the jars in one big zip file? And are you just adding that big zip in your classpath? If so unzip it and then add each jar individually to the classpath. If not, then I would make sure that indeed the package org.apache.struts.action is in your jars. It also looks like you don't have the most updated version of Struts...struts-1.1b2.jar? Am I right? I'd suggest getting the most updated version.
-Yoo-Jin
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic