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)
...全文
84 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
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下

81,090

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧