I have an Android library project that is giving me a problem. To test it I 
have a client application.  If I add the library project in the Android 
settings my client application runs fine.  To test the library I remove the 
setting for the library in the Android properties page. If I take the jar 
file that is created in the library's bin directory and add it to the 
clients lib directory. I would think it would run.  Instead, I am getting a 
NoClassDefFoundError.
The client is able to instantiate one class from the library.  The called 
method inside the library is where the No Class Def shows up.

I have to disclose that this was working and I had been able to even use 
obfuscated versions of my library.  I cannot imagine what I might have 
changed, but if you know of any subtle path setting or something please let 
me know.  I am attaching a stack trace.  the library classes are all in 
com.dsi.client.lib, the test is com.dsi.winwardsample.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
01-23 14:42:07.381: E/AndroidRuntime(21462): FATAL EXCEPTION: Librarian
01-23 14:42:07.381: E/AndroidRuntime(21462): java.lang.RuntimeException: An 
error occured while executing doInBackground()
01-23 14:42:07.381: E/AndroidRuntime(21462):    at 
android.os.AsyncTask$3.done(AsyncTask.java:299)
01-23 14:42:07.381: E/AndroidRuntime(21462):    at 
java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352)
01-23 14:42:07.381: E/AndroidRuntime(21462):    at 
java.util.concurrent.FutureTask.setException(FutureTask.java:219)
01-23 14:42:07.381: E/AndroidRuntime(21462):    at 
java.util.concurrent.FutureTask.run(FutureTask.java:239)
01-23 14:42:07.381: E/AndroidRuntime(21462):    at 
android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
01-23 14:42:07.381: E/AndroidRuntime(21462):    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
01-23 14:42:07.381: E/AndroidRuntime(21462):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
01-23 14:42:07.381: E/AndroidRuntime(21462):    at 
java.lang.Thread.run(Thread.java:856)
01-23 14:42:07.381: E/AndroidRuntime(21462): Caused by: 
java.lang.NoClassDefFoundError: com.dsi.client.lib.UniMagII
01-23 14:42:07.381: E/AndroidRuntime(21462):    at 
com.dsi.client.lib.ClientActivity.processTransaction(ClientActivity.java:139)
01-23 14:42:07.381: E/AndroidRuntime(21462):    at 
com.dsi.winwardsample.WWActivity$Librarian.doInBackground(WWActivity.java:71)
01-23 14:42:07.381: E/AndroidRuntime(21462):    at 
com.dsi.winwardsample.WWActivity$Librarian.doInBackground(WWActivity.java:1)
01-23 14:42:07.381: E/AndroidRuntime(21462):    at 
android.os.AsyncTask$2.call(AsyncTask.java:287)
01-23 14:42:07.381: E/AndroidRuntime(21462):    at 
java.util.concurrent.FutureTask.run(FutureTask.java:234)

Reply via email to