You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by bindhu <bi...@gmail.com> on 2007/06/19 09:06:40 UTC

Struts Help ME PLSSSS

hai,
 
  can u help me out solving this problem. i have dowloaded struts1.3.8. but
while compiling struts enabled java i get error msg. 
 
C:\apache-tomcat-6.0.13\webapps\reg\WEB-INF\classes\app>javac
RegisterForm.java
RegisterForm.java:2: package org.apache.struts.action does not exist
import org.apache.struts.action.*;
^
RegisterForm.java :3: cannot find symbol
symbol: class ActionForm
public class RegisterForm extends ActionForm {
                                  ^
2 errors

C:\apache-tomcat-6.0.13\webapps\reg\WEB-INF\classes\app>javac
ActionForm.java
javac: file not found: ActionForm.java
Usage: javac <options> <source files>
use -help for a list of possible options 

C:\apache-tomcat-6.0.13\webapps\reg\WEB-INF\classes\app>javac
RegisterAction.jav
a
RegisterAction.java:2: package org.apache.struts.action does not exist
import org.apache.struts.action.*;
^
RegisterAction.java :5: cannot find symbol
symbol: class Action
public class RegisterAction extends Action {
                                    ^
RegisterAction.java:6: cannot find symbol
symbol  : class ActionMapping
location: class app.RegisterAction
public ActionForward perform (ActionMapping mapping,
                              ^
RegisterAction.java:7: cannot find symbol
symbol  : class ActionForm
location: class app.RegisterAction 
ActionForm form,
^
RegisterAction.java:6: cannot find symbol
symbol  : class ActionForward
location: class app.RegisterAction
public ActionForward perform (ActionMapping mapping,
       ^
RegisterAction.java :11: cannot find symbol
symbol  : class RegisterForm
location: class app.RegisterAction
RegisterForm rf = (RegisterForm) form;
^
RegisterAction.java:11: cannot find symbol
symbol  : class RegisterForm
location: class app.RegisterAction
RegisterForm rf = (RegisterForm) form;
                   ^
RegisterAction.java:19: cannot find symbol
symbol  : variable UserDirectory
location: class app.RegisterAction
UserDirectory.getInstance().setUser(username,password1);
^
RegisterAction.java:21: cannot find symbol
symbol  : class UserDirectoryException
location: class app.RegisterAction
} catch (UserDirectoryException e) { 
         ^
9 errors

C:\apache-tomcat-6.0.13\webapps\reg\WEB-INF\classes\app>

this is the error msg i get. i will say u what all i did for installation. i
extracted my struts in C: directory. then i renamed struts.jar in
c:\struts\apps to register. then i copied the register to my
C:\tomcat\webapps\register. 

 

then i added it to my class path. my calss path is as follows.

c:\apache-tomcat-6.0.13\webapps\register.jar

i cant find out what mistake i did. can u pls help me to slove this problem.


-- 
View this message in context: http://www.nabble.com/Struts-Help-ME-PLSSSS-tf3944604.html#a11189411
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts Help ME PLSSSS

Posted by nuwan chandrasoma <my...@gmail.com>.
hi,

you dont have struts jar in your classpath, try to add all the struts jar's
in your classpath and compile.

Note: this is not a good way to build applications, try to use a IDE or a
Ant script to build your application and minimize the adding of jars to your
classpath.

Thanks,

Nuwan


On 6/19/07, bindhu <bi...@gmail.com> wrote:
>
>
> hai,
>
> can u help me out solving this problem. i have dowloaded struts1.3.8. but
> while compiling struts enabled java i get error msg.
>
> C:\apache-tomcat-6.0.13\webapps\reg\WEB-INF\classes\app>javac
> RegisterForm.java
> RegisterForm.java:2: package org.apache.struts.action does not exist
> import org.apache.struts.action.*;
> ^
> RegisterForm.java :3: cannot find symbol
> symbol: class ActionForm
> public class RegisterForm extends ActionForm {
>                                  ^
> 2 errors
>
> C:\apache-tomcat-6.0.13\webapps\reg\WEB-INF\classes\app>javac
> ActionForm.java
> javac: file not found: ActionForm.java
> Usage: javac <options> <source files>
> use -help for a list of possible options
>
> C:\apache-tomcat-6.0.13\webapps\reg\WEB-INF\classes\app>javac
> RegisterAction.jav
> a
> RegisterAction.java:2: package org.apache.struts.action does not exist
> import org.apache.struts.action.*;
> ^
> RegisterAction.java :5: cannot find symbol
> symbol: class Action
> public class RegisterAction extends Action {
>                                    ^
> RegisterAction.java:6: cannot find symbol
> symbol  : class ActionMapping
> location: class app.RegisterAction
> public ActionForward perform (ActionMapping mapping,
>                              ^
> RegisterAction.java:7: cannot find symbol
> symbol  : class ActionForm
> location: class app.RegisterAction
> ActionForm form,
> ^
> RegisterAction.java:6: cannot find symbol
> symbol  : class ActionForward
> location: class app.RegisterAction
> public ActionForward perform (ActionMapping mapping,
>       ^
> RegisterAction.java :11: cannot find symbol
> symbol  : class RegisterForm
> location: class app.RegisterAction
> RegisterForm rf = (RegisterForm) form;
> ^
> RegisterAction.java:11: cannot find symbol
> symbol  : class RegisterForm
> location: class app.RegisterAction
> RegisterForm rf = (RegisterForm) form;
>                   ^
> RegisterAction.java:19: cannot find symbol
> symbol  : variable UserDirectory
> location: class app.RegisterAction
> UserDirectory.getInstance().setUser(username,password1);
> ^
> RegisterAction.java:21: cannot find symbol
> symbol  : class UserDirectoryException
> location: class app.RegisterAction
> } catch (UserDirectoryException e) {
>         ^
> 9 errors
>
> C:\apache-tomcat-6.0.13\webapps\reg\WEB-INF\classes\app>
>
> this is the error msg i get. i will say u what all i did for installation.
> i
> extracted my struts in C: directory. then i renamed struts.jar in
> c:\struts\apps to register. then i copied the register to my
> C:\tomcat\webapps\register.
>
>
>
> then i added it to my class path. my calss path is as follows.
>
> c:\apache-tomcat-6.0.13\webapps\register.jar
>
> i cant find out what mistake i did. can u pls help me to slove this
> problem.
>
>
> --
> View this message in context:
> http://www.nabble.com/Struts-Help-ME-PLSSSS-tf3944604.html#a11189411
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

RE: Struts

Posted by "Bizard Nicolas (KIRO 43)" <ni...@credit-suisse.com>.
Hi,
try the following :
javac *.java 
to compile all at once.
Also try javac --help to solve your classpath problems.
Try google to solve the lack of responses to absolutely non struts
related questions on this list.


-----Original Message-----
From: bindhu [mailto:bindhu80@gmail.com] 
Sent: Tuesday, June 19, 2007 8:48 AM
To: user@struts.apache.org
Subject: Struts


hai,
 
  can u help me out solving this problem. i have dowloaded struts1.3.8.
but
while compiling struts enabled java i get error msg. 
 
C:\apache-tomcat-6.0.13\webapps\reg\WEB-INF\classes\app>javac
RegisterForm.java
RegisterForm.java:2: package org.apache.struts.action does not exist
import org.apache.struts.action.*;
^
RegisterForm.java :3: cannot find symbol
symbol: class ActionForm
public class RegisterForm extends ActionForm {
                                  ^
2 errors

C:\apache-tomcat-6.0.13\webapps\reg\WEB-INF\classes\app>javac
ActionForm.java
javac: file not found: ActionForm.java
Usage: javac <options> <source files>
use -help for a list of possible options 

C:\apache-tomcat-6.0.13\webapps\reg\WEB-INF\classes\app>javac
RegisterAction.jav
a
RegisterAction.java:2: package org.apache.struts.action does not exist
import org.apache.struts.action.*;
^
RegisterAction.java :5: cannot find symbol
symbol: class Action
public class RegisterAction extends Action {
                                    ^
RegisterAction.java:6: cannot find symbol
symbol  : class ActionMapping
location: class app.RegisterAction
public ActionForward perform (ActionMapping mapping,
                              ^
RegisterAction.java:7: cannot find symbol
symbol  : class ActionForm
location: class app.RegisterAction 
ActionForm form,
^
RegisterAction.java:6: cannot find symbol
symbol  : class ActionForward
location: class app.RegisterAction
public ActionForward perform (ActionMapping mapping,
       ^
RegisterAction.java :11: cannot find symbol
symbol  : class RegisterForm
location: class app.RegisterAction
RegisterForm rf = (RegisterForm) form;
^
RegisterAction.java:11: cannot find symbol
symbol  : class RegisterForm
location: class app.RegisterAction
RegisterForm rf = (RegisterForm) form;
                   ^
RegisterAction.java:19: cannot find symbol
symbol  : variable UserDirectory
location: class app.RegisterAction
UserDirectory.getInstance().setUser(username,password1);
^
RegisterAction.java:21: cannot find symbol
symbol  : class UserDirectoryException
location: class app.RegisterAction
} catch (UserDirectoryException e) { 
         ^
9 errors

C:\apache-tomcat-6.0.13\webapps\reg\WEB-INF\classes\app>

this is the error msg i get. i will say u what all i did for
installation. i
extracted my struts in C: directory. then i renamed struts.jar in
c:\struts\apps to register. then i copied the register to my
C:\tomcat\webapps\register. 

 

then i added it to my class path. my calss path is as follows.

c:\apache-tomcat-6.0.13\webapps\register.jar

i cant find out what mistake i did. can u pls help me to slove this
problem.


-- 
View this message in context:
http://www.nabble.com/Struts-tf3944604.html#a11189411
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org