import org.apache.tomcat.util.http.fileupload.FileUploadException;等内容,java类里边直接引入,编译不会报错,但是ant run-install的时候提示说程序找不到需要的包,去看lib果然也没有,好,问题表述完毕。
解决:
找到该component下的build.xml文件,在以下文件部分加入你引用的jar包的路径即可,至于你import的jar的路径,都成功import了,找一找肯定有的
<target name="classpath">
<path id="local.class.path">
<!--<fileset dir="${lib.dir}" includes="*.jar"/>-->
<fileset dir="../../framework/base/lib" includes="*.jar"/>
<fileset dir="../../framework/base/lib/j2eespecs" includes="*.jar"/>
<fileset dir="../../framework/base/lib/commons" includes="*.jar"/>
<fileset dir="../../framework/base/build/lib" includes="*.jar"/>
<fileset dir="../../framework/entity/lib" includes="*.jar"/>
<fileset dir="../../framework/entity/build/lib" includes="*.jar"/>
<fileset dir="../../framework/security/build/lib" includes="*.jar"/>
<fileset dir="../../framework/service/lib" includes="*.jar"/>
<fileset dir="../../framework/service/build/lib" includes="*.jar"/>
<fileset dir="../../framework/minilang/build/lib" includes="*.jar"/>
<fileset dir="../../framework/common/build/lib" includes="*.jar"/>
<fileset dir="../../framework/catalina/lib" includes="*.jar"/>
</path>
</target>