eaby sdk碰到这个问题Exception in thread "main" java.lang.NoClassDefFoundError怎么办?

lovely_autumn 2010-09-28 10:58:35
有谁做过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)
...全文
50 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
lovely_autumn 2010-09-29
没人回答我,自己回答,希望以后用到的朋友,能够对你们有用。。。。。。。。。

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

If 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/endorsed

If 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
回复
lovely_autumn 2010-09-28
以工程的形式引进java sdk就可以,那为什么我在web工程里,用quartz来跑,跑到需要调用ebay后台的东西,就不进行了,就挂了。。。这是为什么。。。。。?
回复
lovely_autumn 2010-09-28
放在下面,也是这样
回复
crazylaa 2010-09-28
你放在你的工程的lib下
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2010-09-28 10:58
社区公告
暂无公告