有谁做过eaby第三方插件开发不?最近我在写一程序,碰到这一问题就卡了。我把该导的包导进入了。我用的是ebay sdk661版本的,我jdk是1.5,eclipse3.2, tomcat5.5.如果把ebay上下载的zip解压导入eclipse工具中。然后自己的Web工程再以构建路径引用它,就不会出现下面的问题。我想知道为什么单独用eaby sdk的jar包怎么总报这错,是什么原因呢? 我有导入lib中的jar和externalLib中jar;
(急急急。。请教各位朋友。。)Exception in thread "main" java.lang.NoClassDefFoundError
at com.ebay.sdk.ApiCall.executeByApiName(ApiCall.java:596)
at com.ebay.sdk.ApiCall.execute(ApiCall.java:350)
at com.ebay.sdk.call.GetSellingManagerSoldListingsCall.getSellingManagerSoldListings(GetSellingManagerSoldListingsCall.java:110)
at com.setecusa.transaction.util.ProcessEbayTransaction.getSellingManagerSoldOrderType(ProcessEbayTransaction.java:40)
at com.setecusa.transaction.util.ProcessEbayTransaction.getTransactionSalesOrderBean(ProcessEbayTransaction.java:51)
at com.setecusa.transaction.util.ProcessEbayTransaction.main(ProcessEbayTransaction.java:153)

解决方案 »

  1.   

    以工程的形式引进java sdk就可以,那为什么我在web工程里,用quartz来跑,跑到需要调用ebay后台的东西,就不进行了,就挂了这是为什么。。?
      

  2.   

    没人回答我,自己回答,希望以后用到的朋友,能够对你们有用I've found a solution to the problem, in case anyone is interested.For either solution, I needed the following jars from the externalLib folder:
    1. activation.jar
    2. saaj-impl.jar
    3. jsr250-api.jar
    4. jsr173_api.jar
    5. jsr181-api.jar
    6. streambuffer.jar
    7. stax-ex.jar
    8. saaj-api.jar
    9. jaxp-ri.jar
    10. jaxp-api.jarIf you are running a non-web application you must put the previously mentioned jars into the endorsed folder of whichever runtime environment you happening to be running.In my case the path was: jdk1.5.0_15/jre/lib/endorsedIf you are running a web application under tomcat you must put the previously mentioned jars into the endorsed folder of your tomcat installation.In my case the path was: Tomcat 5.5/common/endorsed