google搜索 51Testing站内搜索                    软件测试门户 | 软件测试培 训 | 文章资料精选 | 软件测试论坛 | 软件测试博客 | 测试招聘求职 
打印

在linux上编译httpunit总出错,希望版主帮帮忙。

在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.

TOP

问题解决了。

TOP

 
当前时区 GMT+8, 现在时间是 2008-9-8 14:19Copyright(C)上海博为峰软件技术有限公司 2001-2007 电话:021-64471599-8017
当您在访问网站、论坛及博客过程中遇到问题时可发送email:webmaster@51testing.com或发送论坛短信至管理员风在吹