我的项目有什么问题。我已经导入了所有依赖项,但它仍然输出错误:
这是我导入的列表依赖项: 依赖包图像
这是我的测试代码:
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package brouillon;
import controllers.RetardJpaController;
import entites.Retard;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import javax.persistence.Persistence;
import org.jxls.common.Context;
import org.jxls.util.JxlsHelper;
/**
*
* @author Vals
*/
public class Brouillon {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
// TODO code application logic here
RetardJpaController ctr = new RetardJpaController(Persistence.createEntityManagerFactory("BrouillonPU"));
List<Retard> liste = ctr.findRetardEntities();
try(InputStream is = Brouillon.class.getResourceAsStream("ressources/object_collection_template.xls")) {
try (OutputStream os = new FileOutputStream("object_collection_output.xls")) {
Context context = new Context();
context.putVar("retards", liste);
//JxlsHelper.getInstance().processTemplate(is, os, context);
JxlsHelper jh = JxlsHelper.getInstance();
jh.processTemplate(is, os, context);
}
}
}
}