For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Product
Category
Language
Format
SDK
Sort by
Direction

Java SDK - Exception in thread 'main' java.lang.NoClassDefFoundError

  • Answer ID 1301
  • Published 09/18/2008 03:06 PM
  • Updated 10/20/2013 06:41 AM
  • Permalink https://ebaydts.com/eBayKBDetails?KBid=1301

I am getting Exception in thread "main" java.lang.NoClassDefFoundError as below when runs a java standalone project using the JAXB version of the JAVA SDK.

loading wsdl : jar:file:/D:/SDK_JAXB/lib/ebaysdkcore.jar!/eBaySvc.wsdl
Exception in thread "main" java.lang.NoClassDefFoundError
        at com.ebay.sdk.ApiCall.executeByApiName(ApiCall.java:595)
        at com.ebay.sdk.ApiCall.execute(ApiCall.java:349)
       at com.ebay.sdk.call.GetItemCall.getItem(GetItemCall.java:209)
       at com.ebay.sample.AppGetItem.main(AppGetItem.java:32)How to fix it?

 


Summary

    This occurs if you use Sun JDK 1.6.0_04 or below as your Java Platform and include the jaxp-1.4.2 libraries: ${JAVA_SDK_HOME}externalLib/optional/jaxp-1.4.2/*  in your CLASSPATH. 

   To fix it , you just need to remove the jaxp-1.4.2 libraries from your CLASSPATH since they are only needed if you are using IBM JDK 1.5.x.


 Version Info

The KB above was based on the versions specified below:

JAVA SDK Version

eBay Java SDK 705 Point 

How well did this answer your question?

Answers others found helpful

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter