java - Struts error - can not find package -


having error:

 com.opensymphony.xwork2.actionsupport; package not exist 

i using struts2.3.8 , not using eclipse or net beans, have made directory structure:

code\chapter\struts2application\web-inf\src\comm\kognet\action\clientaction.java 

and unzipped struts2 , copied , stored jar files in:

code\chapter\struts2application\web-inf\lib  common-logging1-1-1 freemarker-2.3.19 ognl3.0.6 xwork core-2.3.8 struts2 core-2.3.8 

i have set catalina_home as:

c:\program files\java\jdk1.7.0_07\apache-tomcat-7.0.37 

path as:

c:\program files\java\jdk1.7.0_07 

classpath .

i new struts , first program. please help

  1. you're missing commons-io , commons-fileupload, and...
  2. ...please don't try dependency management hand: use maven, ivy, etc. and...
  3. ...please don't builds hand, use maven, ant, etc.
  4. setting classpath (using either preferred -classpath or -cp or classpath environment variable, imo should avoided) . insufficient. need add dependent jars explicitly, or via wildcard, and...
  5. ...you should add output directory of compilation own classes available well.
  6. don't put source web-inf, use directory outside of deployable artifacts. toy development it's okay, imo it's bad habit.

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -