Java 在Eclipse中安装Esper

Java 在Eclipse中安装Esper,java,esper,Java,Esper,我正在努力在Eclipse中安装Esper。我不擅长技术问题,所以请告诉我所有细节 事实上,我在项目的Javabuild路径中添加了所有esper-5.4.0.zip的jar文件。我收到以下错误消息: log4j:WARN No appenders could be found for logger (com.espertech.esper.util.ObjectInputStreamWithTCCL). log4j:WARN Please initialize the log4j system

我正在努力在Eclipse中安装Esper。我不擅长技术问题,所以请告诉我所有细节

事实上,我在项目的Javabuild路径中添加了所有esper-5.4.0.zip的jar文件。我收到以下错误消息:

log4j:WARN No appenders could be found for logger (com.espertech.esper.util.ObjectInputStreamWithTCCL).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" com.espertech.esper.client.EPStatementException: Failed to resolve event type: Event type or class named 'Deposit' was not found [every A=Deposit]
    at com.espertech.esper.core.service.StatementLifecycleSvcImpl.compile(StatementLifecycleSvcImpl.java:1162)
    at com.espertech.esper.core.service.StatementLifecycleSvcImpl.createStopped(StatementLifecycleSvcImpl.java:298)
    at com.espertech.esper.core.service.StatementLifecycleSvcImpl.createStoppedAssignName(StatementLifecycleSvcImpl.java:202)
    at com.espertech.esper.core.service.StatementLifecycleSvcImpl.createAndStart(StatementLifecycleSvcImpl.java:156)
    at com.espertech.esper.core.service.EPAdministratorImpl.createPatternStmt(EPAdministratorImpl.java:108)
    at com.espertech.esper.core.service.EPAdministratorImpl.createPattern(EPAdministratorImpl.java:58)
    at test.CEP_start.main(CEP_start.java:39)

当您创建类似于
select*from Deposit
的语句时,需要您告诉引擎什么是“存款”。这是通过添加事件类型来完成的


文档和教程中有大量的介绍性示例,或者您可以查看Esper下载附带的示例。

您能告诉我们您从哪里获得项目zip和其他使用过的zip文件吗?如果我们要帮忙,我们需要知道这一点。嗨,谢谢。我从这个链接获得了项目zip:关于存款,我有以下类:类存款{private float amount;private String customerID;public String getCustomerID(){return customerID;}public void setCustomerID(String customerID){this.customerID=customerID;}public float getAmount(){return amount;}公共void setAmount(浮动金额){this.amount=amount;}