NoClassDefFoundError should tell you which class it didn't find.  The
reasons for "not found' are basically two:
1) The class really doesn't exist (in the exact package/name form
shown in the message).
2) The class was found, but subsequently experienced a verification
error.  This generally occurs when the class was compiled against
version X of some library but is finding (incompatible) version Y when
it loads.  Usually (but not always), if you look up the exception
traceback in this case you'll find mention of the specific error that
triggered the NoClassDefFoundError.

On Feb 16, 7:15 pm, scott_ggle <sch...@comcast.net> wrote:
> I am writing a test application using JmDNS which is java lib for
> multicast DNS discovery. (downloaded fromhttp://jmdns.sourceforge.net/).
>
> The exception is thrown at creation of an instance of the class. This
> indicate the class definition is not found as I understand it. So it
> looks like there is problem in including the jar in the project. I
> added the jar file as user library. Here is the steps.
>
> 1. Right-click the project in Eclipse and select “Build Path -> Add
> Libraries…”.
> 2. Select User Library from the list and click Next.
> 3. Click the “User Libraries…” button.
> 4. Click “New…” in the User Libraries dialog.
> 5. Give the user library a name and select the System library checkbox
> and click OK.
> 6. Highlight the newly added user library in the list and click the
> “Add JARs…” button and add the desired jar files.
> 7. Click OK on the User Libraries dialog.
> 8. Make sure the new user library is checked in the Add Library dialog
> and …
>
> Additional information:
>
> - No problem if I build/run the application as Java application
> instead of Andriod application. Tried Eclipse both on Mac and Windows
> got the same error.
> - Got the same error on AVD or on actual device.
> - Tried other form of constructor as well.
>
> Any ideas would be greatly appreciated.
>
> Scott

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to