Struts アプリケーションをビルドしようとすると、次のエラーが発生します。
compile:
[javac] /media/Data/Struts 2/2012-05-02/Struts/src/Build.xml:5: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 2 source files
[javac] MyAction.java:5: package org.apache.struts2.interceptor does not exist
[javac] import org.apache.struts2.interceptor.SessionAware;
[javac] ^
[javac] MyAction.java:7: package com.opensymphony.xwork2 does not exist
[javac] import com.opensymphony.xwork2.ActionSupport;
[javac] ^
[javac] MyAction.java:10: cannot find symbol
[javac] symbol: class ActionSupport
[javac] public class MyAction extends ActionSupport implements SessionAware {
[javac] ^
[javac] MyAction.java:10: cannot find symbol
[javac] symbol: class SessionAware
[javac] public class MyAction extends ActionSupport implements SessionAware {
[javac] ^
[javac] MyAction.java:22: cannot find symbol
[javac] symbol : method addActionError(java.lang.String)
[javac] location: class com.sp.action.MyAction
[javac] addActionError("invalid");
[javac] ^
[javac] MyAction.java:47: cannot find symbol
[javac] symbol : method addActionError(java.lang.String)
[javac] location: class com.sp.action.MyAction
[javac] addActionError("User Name ,pass cannot be error");
[javac] ^
[javac] MyAction.java:43: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] 7 errors
BUILD FAILED
src/com/sp/action/*.java
私のパッケージ階層はsrc/com/sp/domain/*.java
私のビルドファイルは次のとおりです。
<?xml version="1.0" encoding="UTF-8"?>
<project name="strutsComple" default="compile">
<target name="compile">
<fileset dir="/media/Data/Works/struts-2.3.1.2/lib/" includes="*.jar"/>
<javac srcdir="./com/sp/"/>
</target>
</project>
必要な 2 つの jar ファイルを Eclipse フォルダーに既に追加しています。
誰かが私に欠けているものを教えてもらえますか?