51Testing软件测试论坛

标题: 在linux上编译httpunit总出错,希望版主帮帮忙。 [打印本页]

作者: yun_004    时间: 2006-7-19 16:19
标题: 在linux上编译httpunit总出错,希望版主帮帮忙。
这是编译出错信息。不知道如何修改?
compile:
    [javac] Compiling 2 source files to /root/httpunit-1.6.2/build/classes

    [javac] Found 2 semantic errors compiling "/root/httpunit-1.6.2/src/com/meterware/httpunit/FormControl.java":

    [javac]   1076.         private Options _container;
    [javac]                         ^-----^
    [javac] *** Semantic Error: The static type "com.meterware.httpunit.SelectionFormControl$Option" must use a qualified name to access the non-static member type "com.meterware.httpunit.SelectionFormControl$Options" of the enclosing type "com.meterware.httpunit.SelectionFormControl".


    [javac]   1100.         void setIndex( Options container, int index ) {
    [javac]                                ^-----^
    [javac] *** Semantic Error: The static type "com.meterware.httpunit.SelectionFormControl$Option" must use a qualified name to access the non-static member type "com.meterware.httpunit.SelectionFormControl$Options" of the enclosing type "com.meterware.httpunit.SelectionFormControl".

    [javac] Found 2 semantic errors compiling "/root/httpunit-1.6.2/src/com/meterware/servletunit/WebApplication.java":

    [javac]    823.         private ServletConfiguration getConfiguration() {
    [javac]                         ^------------------^
    [javac] *** Semantic Error: The static type "com.meterware.servletunit.WebApplication$ServletRequestImpl" must use a qualified name to access the non-static member type "com.meterware.servletunit.WebApplication$ServletConfiguration" of the enclosing type "com.meterware.servletunit.WebApplication".


    [javac]    824.             return _mapping == null ? null : (ServletConfiguration) _mapping.getConfiguration();
    [javac]                                                       ^------------------^
    [javac] *** Semantic Error: The static type "com.meterware.servletunit.WebApplication$ServletRequestImpl" must use a qualified name to access the non-static member type "com.meterware.servletunit.WebApplication$ServletConfiguration" of the enclosing type "com.meterware.servletunit.WebApplication".

BUILD FAILED
/root/httpunit-1.6.2/build.xml:86: Compile failed; see the compiler error output for details.
作者: yun_004    时间: 2006-8-1 18:20
问题解决了。




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2