Results 1 to 3 of 3
  1. #1
    bhupal4all's Avatar
    bhupal4all is offline Member
    Join Date
    Sep 2008
    Posts
    13
    Rep Power
    0

    Exclamation Problem with CLASSPATH for STRUTS

    I am using Windows Vista.

    My classpath = .;C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar; C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\jsp-api.jar; C:\softwares\struts\struts-1.2.8-bin\lib\struts.jar;

    I am getting errors when compeling the .java files Some of list of errors.

    C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\struts-test\WEB-INF\classes\coreservlets\RegisterAction1.java:4: package org.apache.struts.action does not exist import org.apache.struts.action.*;

    C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\struts-test\WEB-INF\classes\coreservlets\RegisterAction1.java:6: cannot find symbol symbol: class Action public class RegisterAction1 extends Action {

    Could anybody help me to figure this out?

    Thanks in advance.

    ---Ranga
    Thanks,
    Ranga Bhupal :)

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,882
    Rep Power
    25

    Default

    The compiler can't find the package and class shown in the error messages.
    Are the missing packages and class in the jar files you have on the classpath? Look in the jar files to see if they are there. You can use WinZip for example or you can rename the jar files to .zip files to look inside them.

  3. #3
    bhupal4all's Avatar
    bhupal4all is offline Member
    Join Date
    Sep 2008
    Posts
    13
    Rep Power
    0

    Default

    Thanks for helping me. :)

    Do you want me to check in 'struts.jar' for 'Action' class?

    I have checked 'struts.jar', 'Action.class' is there.
    I have downloaded structs-1.2.2 from "apache.org".
    Thanks,
    Ranga Bhupal :)

Similar Threads

  1. decorator.jsp problem building Struts Menu in JSP when Struts action is used
    By dkirvan in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-29-2010, 06:33 AM
  2. Problem with Struts Menu
    By sdp in forum Advanced Java
    Replies: 4
    Last Post: 10-02-2009, 03:13 AM
  3. Problem with running Struts - ver 1.3.8
    By oferk78 in forum Web Frameworks
    Replies: 1
    Last Post: 09-21-2008, 10:28 AM
  4. Problem with struts
    By oferk78 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 09-11-2008, 08:14 PM
  5. Struts problem
    By ziniestro in forum Web Frameworks
    Replies: 2
    Last Post: 05-10-2007, 06:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •