在eclipse中无法使用setCellData写入excel

时间:2013-06-24 10:28:21

标签: eclipse selenium

我正在编写以下代码,在我的Excel工作表“TestCase_A1”的“结果”栏中写下“Pass”。

public class Updateresult_data {

    public static void main(String[] args) {
        Xls_Reader x = new Xls_Reader(System.getProperty("user.dir") + "\\src\\com\\plumslice\\xls\\A Suite.xlsx");
        setresult(x, "TestCase_A1", 2, "Pass");
    }

    public static void setresult(Xls_Reader xls, String testname, int rowNum, String result)
    {
        xls.setCellData(testname, "Results", rowNum, result);
    }
}

Xls_Reader是一种读取xlsx文件的方法,在其他程序中工作正常

1 个答案:

答案 0 :(得分:0)

现在解决了错误,我删除了并在我的eclipse中再次安装了所有相关的jar文件。